diff --git a/Cargo.toml b/Cargo.toml index 3e88d0f9..bc961e45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,10 @@ new_without_default = "allow" collapsible_match = "allow" needless_bool = "allow" +# Silence, Clippy +# A Smithay user is talking +too_many_arguments = "allow" + [workspace.dependencies] anyhow = "1.0.104" bitflags = "2.13" diff --git a/src/dbus/freedesktop_a11y.rs b/src/dbus/freedesktop_a11y.rs index 74cb7da2..be212931 100644 --- a/src/dbus/freedesktop_a11y.rs +++ b/src/dbus/freedesktop_a11y.rs @@ -250,7 +250,6 @@ impl KeyboardMonitor { } impl KeyboardMonitor { - #[allow(clippy::too_many_arguments)] pub fn process_key( &self, repeat_delay: Duration, diff --git a/src/input/mod.rs b/src/input/mod.rs index ce29160a..f3879be9 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -5008,7 +5008,6 @@ fn is_bind_on_cooldown(bind: &Bind, cooldown_timers: &HashMap( suppressed_keys: &mut HashSet, pending_release_binds: &mut HashMap, diff --git a/src/layout/focus_ring.rs b/src/layout/focus_ring.rs index b53a5df8..3d599e07 100644 --- a/src/layout/focus_ring.rs +++ b/src/layout/focus_ring.rs @@ -54,7 +54,6 @@ impl FocusRing { } } - #[allow(clippy::too_many_arguments)] pub fn update_render_elements( &mut self, win_size: Size, diff --git a/src/layout/mod.rs b/src/layout/mod.rs index f21367c4..734e7d20 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -199,7 +199,6 @@ pub trait LayoutElement { } /// Renders the background effect behind the main surface of the element. - #[allow(clippy::too_many_arguments)] fn render_background_effect( &self, _ctx: RenderCtx, @@ -969,7 +968,6 @@ impl Layout { /// Adds a new window to the layout. /// /// Returns an output that the window was added to, if there were any outputs. - #[allow(clippy::too_many_arguments)] pub fn add_window( &mut self, window: W, diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 979b13ea..7482cf2c 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -573,7 +573,6 @@ impl Monitor { } } - #[allow(clippy::too_many_arguments)] pub fn add_tile( &mut self, tile: Tile, diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index b548456d..ed8068e1 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -3964,7 +3964,6 @@ impl WindowHeight { } impl Column { - #[allow(clippy::too_many_arguments)] fn new_with_tile( tile: Tile, view_size: Size, diff --git a/src/layout/tab_indicator.rs b/src/layout/tab_indicator.rs index e7d9a3df..f48cd046 100644 --- a/src/layout/tab_indicator.rs +++ b/src/layout/tab_indicator.rs @@ -154,7 +154,6 @@ impl TabIndicator { }) } - #[allow(clippy::too_many_arguments)] pub fn update_render_elements( &mut self, enabled: bool, diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 9520cfe3..46f169be 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -632,7 +632,6 @@ impl Workspace { ) } - #[allow(clippy::too_many_arguments)] pub fn add_tile( &mut self, mut tile: Tile, diff --git a/src/niri.rs b/src/niri.rs index 1bb35d29..e46174f6 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -5009,7 +5009,6 @@ impl Niri { }) } - #[allow(clippy::too_many_arguments)] fn render_layer_normal( &self, mut ctx: RenderCtx, @@ -5027,7 +5026,6 @@ impl Niri { } } - #[allow(clippy::too_many_arguments)] fn render_layer_popups( &self, mut ctx: RenderCtx, @@ -5873,7 +5871,6 @@ impl Niri { /// Renders the elements into the frame's buffer and completes the frame. /// /// Returns `true` if it succeeded and `false` otherwise. - #[allow(clippy::too_many_arguments)] fn capture_image_copy_frame( &self, renderer: &mut GlesRenderer, diff --git a/src/render_helpers/background_effect.rs b/src/render_helpers/background_effect.rs index d148b6c1..e9168213 100644 --- a/src/render_helpers/background_effect.rs +++ b/src/render_helpers/background_effect.rs @@ -278,9 +278,6 @@ pub fn damage_surface(states: &SurfaceData) { } } -// Silence, Clippy -// A Smithay user is talking -#[allow(clippy::too_many_arguments)] pub fn render_for_tile( ctx: RenderCtx, ns: Option, diff --git a/src/render_helpers/border.rs b/src/render_helpers/border.rs index 923066ef..428806f2 100644 --- a/src/render_helpers/border.rs +++ b/src/render_helpers/border.rs @@ -47,7 +47,6 @@ struct Parameters { } impl BorderRenderElement { - #[allow(clippy::too_many_arguments)] pub fn new( size: Size, gradient_area: Rectangle, @@ -106,7 +105,6 @@ impl BorderRenderElement { self.inner.damage_all(); } - #[allow(clippy::too_many_arguments)] pub fn update( &mut self, size: Size, diff --git a/src/render_helpers/resize.rs b/src/render_helpers/resize.rs index 79b26dbf..491b1997 100644 --- a/src/render_helpers/resize.rs +++ b/src/render_helpers/resize.rs @@ -20,7 +20,6 @@ use crate::backend::tty::{TtyFrame, TtyRenderer, TtyRendererError}; pub struct ResizeRenderElement(ShaderRenderElement); impl ResizeRenderElement { - #[allow(clippy::too_many_arguments)] pub fn new( area: Rectangle, scale: Scale, diff --git a/src/render_helpers/shader_element.rs b/src/render_helpers/shader_element.rs index f1bf978b..07f760df 100644 --- a/src/render_helpers/shader_element.rs +++ b/src/render_helpers/shader_element.rs @@ -178,7 +178,6 @@ impl ShaderProgram { } impl ShaderRenderElement { - #[allow(clippy::too_many_arguments)] pub fn new( program: ProgramType, size: Size, diff --git a/src/render_helpers/shadow.rs b/src/render_helpers/shadow.rs index 0d26201c..d8d0eaab 100644 --- a/src/render_helpers/shadow.rs +++ b/src/render_helpers/shadow.rs @@ -39,7 +39,6 @@ struct Parameters { } impl ShadowRenderElement { - #[allow(clippy::too_many_arguments)] pub fn new( size: Size, geometry: Rectangle, @@ -92,7 +91,6 @@ impl ShadowRenderElement { self.inner.damage_all(); } - #[allow(clippy::too_many_arguments)] pub fn update( &mut self, size: Size, diff --git a/src/render_helpers/texture.rs b/src/render_helpers/texture.rs index 5e52950a..ccf8aad6 100644 --- a/src/render_helpers/texture.rs +++ b/src/render_helpers/texture.rs @@ -50,7 +50,6 @@ impl TextureBuffer { } } - #[allow(clippy::too_many_arguments)] pub fn from_memory + ImportMem>( renderer: &mut R, data: &[u8], diff --git a/src/render_helpers/xray.rs b/src/render_helpers/xray.rs index f4b4f861..517b995c 100644 --- a/src/render_helpers/xray.rs +++ b/src/render_helpers/xray.rs @@ -93,7 +93,6 @@ impl Xray { } } - #[allow(clippy::too_many_arguments)] pub fn render( &self, ctx: RenderCtx, diff --git a/src/screencasting/pw_utils.rs b/src/screencasting/pw_utils.rs index 5dcae14c..f580bd45 100644 --- a/src/screencasting/pw_utils.rs +++ b/src/screencasting/pw_utils.rs @@ -399,7 +399,6 @@ impl PipeWire { }) } - #[allow(clippy::too_many_arguments)] pub fn start_cast( &self, gbm: Option<(GbmDevice, FormatSet)>, @@ -1244,7 +1243,6 @@ impl Cast { } } - #[allow(clippy::too_many_arguments)] pub fn dequeue_buffer_and_render( &mut self, renderer: &mut GlesRenderer, diff --git a/src/tests/window_opening.rs b/src/tests/window_opening.rs index 43b88348..08180710 100644 --- a/src/tests/window_opening.rs +++ b/src/tests/window_opening.rs @@ -505,7 +505,6 @@ fn target_size() { }); } -#[allow(clippy::too_many_arguments)] fn check_target_size( open_fullscreen: Option<&str>, want_fullscreen: WantFullscreen, diff --git a/src/ui/mru.rs b/src/ui/mru.rs index 3f976964..66503882 100644 --- a/src/ui/mru.rs +++ b/src/ui/mru.rs @@ -335,7 +335,6 @@ impl Thumbnail { }) } - #[allow(clippy::too_many_arguments)] fn render( &self, mut ctx: RenderCtx,