chore: rust-toolchain.toml; cargo clippy --fix
This commit is contained in:
parent
0ec99c4012
commit
039aeb1e74
8 changed files with 13 additions and 11 deletions
|
|
@ -31,7 +31,7 @@ use crate::app;
|
||||||
|
|
||||||
use super::wallpaper::widgets::color_image;
|
use super::wallpaper::widgets::color_image;
|
||||||
|
|
||||||
pub static COLOR_PICKER_DIALOG_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static COLOR_PICKER_DIALOG_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
|
|
||||||
enum NamedColorPicker {
|
enum NamedColorPicker {
|
||||||
CustomAccent,
|
CustomAccent,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ use crate::{
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub static ADD_DOCK_APPLET_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static ADD_DOCK_APPLET_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
|
|
||||||
pub(crate) struct Page {
|
pub(crate) struct Page {
|
||||||
inner: applets_inner::Page,
|
inner: applets_inner::Page,
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ const SPACING: f32 = 8.0;
|
||||||
// radius is 8.0
|
// radius is 8.0
|
||||||
const DRAG_START_DISTANCE_SQUARED: f32 = 64.0;
|
const DRAG_START_DISTANCE_SQUARED: f32 = 64.0;
|
||||||
|
|
||||||
pub static APPLET_DND_ICON_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static APPLET_DND_ICON_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
pub static ADD_PANEL_APPLET_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static ADD_PANEL_APPLET_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
|
|
||||||
pub struct Page {
|
pub struct Page {
|
||||||
pub(crate) available_entries: Vec<Applet<'static>>,
|
pub(crate) available_entries: Vec<Applet<'static>>,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use super::Message;
|
use super::Message;
|
||||||
use cosmic::iced_core::{self, gradient::Linear, Background, BorderRadius, Color, Degrees, Length};
|
use cosmic::iced_core::{self, gradient::Linear, Background, Color, Degrees, Length};
|
||||||
use cosmic::iced_runtime::core::image::Handle as ImageHandle;
|
use cosmic::iced_runtime::core::image::Handle as ImageHandle;
|
||||||
use cosmic::prelude::*;
|
use cosmic::prelude::*;
|
||||||
use cosmic::widget::{button, container, space};
|
use cosmic::widget::{button, container, space};
|
||||||
|
|
|
||||||
|
|
@ -193,14 +193,14 @@ fn multi_behavior() -> Section<crate::pages::Message> {
|
||||||
&descriptions[0],
|
&descriptions[0],
|
||||||
WorkspaceMode::Global,
|
WorkspaceMode::Global,
|
||||||
Some(page.comp_workspace_config.workspace_mode),
|
Some(page.comp_workspace_config.workspace_mode),
|
||||||
|x| Message::SetWorkspaceMode(x),
|
Message::SetWorkspaceMode,
|
||||||
)
|
)
|
||||||
.into()]))
|
.into()]))
|
||||||
.add(settings::item_row(vec![radio(
|
.add(settings::item_row(vec![radio(
|
||||||
&descriptions[1],
|
&descriptions[1],
|
||||||
WorkspaceMode::OutputBound,
|
WorkspaceMode::OutputBound,
|
||||||
Some(page.comp_workspace_config.workspace_mode),
|
Some(page.comp_workspace_config.workspace_mode),
|
||||||
|x| Message::SetWorkspaceMode(x),
|
Message::SetWorkspaceMode,
|
||||||
)
|
)
|
||||||
.into()]))
|
.into()]))
|
||||||
.apply(Element::from)
|
.apply(Element::from)
|
||||||
|
|
@ -239,7 +239,7 @@ fn workspace_orientation() -> Section<crate::pages::Message> {
|
||||||
settings::view_section(§ion.title)
|
settings::view_section(§ion.title)
|
||||||
.add(
|
.add(
|
||||||
cosmic::widget::segmented_selection::horizontal(&page.orientation_model)
|
cosmic::widget::segmented_selection::horizontal(&page.orientation_model)
|
||||||
.on_activate(|x| Message::OrientationButtonSelected(x)),
|
.on_activate(Message::OrientationButtonSelected),
|
||||||
)
|
)
|
||||||
.apply(Element::from)
|
.apply(Element::from)
|
||||||
.map(crate::pages::Message::DesktopWorkspaces)
|
.map(crate::pages::Message::DesktopWorkspaces)
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ use slotmap::SlotMap;
|
||||||
|
|
||||||
use super::Message;
|
use super::Message;
|
||||||
|
|
||||||
pub static ADD_INPUT_SOURCE_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static ADD_INPUT_SOURCE_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
pub static SPECIAL_CHARACTER_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(|| window::Id::unique());
|
pub static SPECIAL_CHARACTER_DIALOGUE_ID: Lazy<window::Id> = Lazy::new(window::Id::unique);
|
||||||
|
|
||||||
static COMPOSE_OPTIONS: &[(&str, &str)] = &[
|
static COMPOSE_OPTIONS: &[(&str, &str)] = &[
|
||||||
// ("Left Alt", "compose:lalt"), XXX?
|
// ("Left Alt", "compose:lalt"), XXX?
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
1.70.0
|
|
||||||
3
rust-toolchain.toml
Normal file
3
rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "1.70.0"
|
||||||
|
components = ["clippy", "rustfmt"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue