Globally silence too_many_arguments
Browse files at this commit44d911980c45a650dcf93f410195676593dafe17Parent: 17adcb020 changed files +4 -27
- Cargo.toml +4 -0
- src/dbus/freedesktop_a11y.rs +0 -1
- src/input/mod.rs +0 -1
- src/layout/focus_ring.rs +0 -1
- src/layout/mod.rs +0 -2
- src/layout/monitor.rs +0 -1
- src/layout/scrolling.rs +0 -1
- src/layout/tab_indicator.rs +0 -1
- src/layout/workspace.rs +0 -1
- src/niri.rs +0 -3
- src/render_helpers/background_effect.rs +0 -3
- src/render_helpers/border.rs +0 -2
- src/render_helpers/resize.rs +0 -1
- src/render_helpers/shader_element.rs +0 -1
- src/render_helpers/shadow.rs +0 -2
- src/render_helpers/texture.rs +0 -1
- src/render_helpers/xray.rs +0 -1
- src/screencasting/pw_utils.rs +0 -2
- src/tests/window_opening.rs +0 -1
- src/ui/mru.rs +0 -1
Cargo.tomlmodified+4 -0
| @@ -19,6 +19,10 @@ new_without_default = "allow" | ||
| 19 | 19 | collapsible_match = "allow" |
| 20 | 20 | needless_bool = "allow" |
| 21 | 21 | |
| 22 | +# Silence, Clippy | |
| 23 | +# A Smithay user is talking | |
| 24 | +too_many_arguments = "allow" | |
| 25 | + | |
| 22 | 26 | [workspace.dependencies] |
| 23 | 27 | anyhow = "1.0.104" |
| 24 | 28 | bitflags = "2.13" |
src/dbus/freedesktop_a11y.rsmodified+0 -1
| @@ -250,7 +250,6 @@ impl KeyboardMonitor { | ||
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | impl KeyboardMonitor { |
| 253 | - #[allow(clippy::too_many_arguments)] | |
| 254 | 253 | pub fn process_key( |
| 255 | 254 | &self, |
| 256 | 255 | repeat_delay: Duration, |
src/input/mod.rsmodified+0 -1
| @@ -5008,7 +5008,6 @@ fn is_bind_on_cooldown(bind: &Bind, cooldown_timers: &HashMap<Key, RegistrationT | ||
| 5008 | 5008 | /// |
| 5009 | 5009 | /// A bind whose press action is rate-limited by its cooldown is skipped entirely: |
| 5010 | 5010 | /// No action runs, and no release action is recorded. |
| 5011 | -#[allow(clippy::too_many_arguments)] | |
| 5012 | 5011 | fn should_intercept_key<'a>( |
| 5013 | 5012 | suppressed_keys: &mut HashSet<Keycode>, |
| 5014 | 5013 | pending_release_binds: &mut HashMap<Keycode, Bind>, |
src/layout/focus_ring.rsmodified+0 -1
| @@ -54,7 +54,6 @@ impl FocusRing { | ||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - #[allow(clippy::too_many_arguments)] | |
| 58 | 57 | pub fn update_render_elements( |
| 59 | 58 | &mut self, |
| 60 | 59 | win_size: Size<f64, Logical>, |
src/layout/mod.rsmodified+0 -2
| @@ -199,7 +199,6 @@ pub trait LayoutElement { | ||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /// Renders the background effect behind the main surface of the element. |
| 202 | - #[allow(clippy::too_many_arguments)] | |
| 203 | 202 | fn render_background_effect( |
| 204 | 203 | &self, |
| 205 | 204 | _ctx: RenderCtx<GlesRenderer>, |
| @@ -969,7 +968,6 @@ impl<W: LayoutElement> Layout<W> { | ||
| 969 | 968 | /// Adds a new window to the layout. |
| 970 | 969 | /// |
| 971 | 970 | /// Returns an output that the window was added to, if there were any outputs. |
| 972 | - #[allow(clippy::too_many_arguments)] | |
| 973 | 971 | pub fn add_window( |
| 974 | 972 | &mut self, |
| 975 | 973 | window: W, |
src/layout/monitor.rsmodified+0 -1
| @@ -573,7 +573,6 @@ impl<W: LayoutElement> Monitor<W> { | ||
| 573 | 573 | } |
| 574 | 574 | } |
| 575 | 575 | |
| 576 | - #[allow(clippy::too_many_arguments)] | |
| 577 | 576 | pub fn add_tile( |
| 578 | 577 | &mut self, |
| 579 | 578 | tile: Tile<W>, |
src/layout/scrolling.rsmodified+0 -1
| @@ -3964,7 +3964,6 @@ impl WindowHeight { | ||
| 3964 | 3964 | } |
| 3965 | 3965 | |
| 3966 | 3966 | impl<W: LayoutElement> Column<W> { |
| 3967 | - #[allow(clippy::too_many_arguments)] | |
| 3968 | 3967 | fn new_with_tile( |
| 3969 | 3968 | tile: Tile<W>, |
| 3970 | 3969 | view_size: Size<f64, Logical>, |
src/layout/tab_indicator.rsmodified+0 -1
| @@ -154,7 +154,6 @@ impl TabIndicator { | ||
| 154 | 154 | }) |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - #[allow(clippy::too_many_arguments)] | |
| 158 | 157 | pub fn update_render_elements( |
| 159 | 158 | &mut self, |
| 160 | 159 | enabled: bool, |
src/layout/workspace.rsmodified+0 -1
| @@ -632,7 +632,6 @@ impl<W: LayoutElement> Workspace<W> { | ||
| 632 | 632 | ) |
| 633 | 633 | } |
| 634 | 634 | |
| 635 | - #[allow(clippy::too_many_arguments)] | |
| 636 | 635 | pub fn add_tile( |
| 637 | 636 | &mut self, |
| 638 | 637 | mut tile: Tile<W>, |
src/niri.rsmodified+0 -3
| @@ -5009,7 +5009,6 @@ impl Niri { | ||
| 5009 | 5009 | }) |
| 5010 | 5010 | } |
| 5011 | 5011 | |
| 5012 | - #[allow(clippy::too_many_arguments)] | |
| 5013 | 5012 | fn render_layer_normal<R: NiriRenderer>( |
| 5014 | 5013 | &self, |
| 5015 | 5014 | mut ctx: RenderCtx<R>, |
| @@ -5027,7 +5026,6 @@ impl Niri { | ||
| 5027 | 5026 | } |
| 5028 | 5027 | } |
| 5029 | 5028 | |
| 5030 | - #[allow(clippy::too_many_arguments)] | |
| 5031 | 5029 | fn render_layer_popups<R: NiriRenderer>( |
| 5032 | 5030 | &self, |
| 5033 | 5031 | mut ctx: RenderCtx<R>, |
| @@ -5873,7 +5871,6 @@ impl Niri { | ||
| 5873 | 5871 | /// Renders the elements into the frame's buffer and completes the frame. |
| 5874 | 5872 | /// |
| 5875 | 5873 | /// Returns `true` if it succeeded and `false` otherwise. |
| 5876 | - #[allow(clippy::too_many_arguments)] | |
| 5877 | 5874 | fn capture_image_copy_frame( |
| 5878 | 5875 | &self, |
| 5879 | 5876 | renderer: &mut GlesRenderer, |
src/render_helpers/background_effect.rsmodified+0 -3
| @@ -278,9 +278,6 @@ pub fn damage_surface(states: &SurfaceData) { | ||
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | -// Silence, Clippy | |
| 282 | -// A Smithay user is talking | |
| 283 | -#[allow(clippy::too_many_arguments)] | |
| 284 | 281 | pub fn render_for_tile( |
| 285 | 282 | ctx: RenderCtx<GlesRenderer>, |
| 286 | 283 | ns: Option<usize>, |
src/render_helpers/border.rsmodified+0 -2
| @@ -47,7 +47,6 @@ struct Parameters { | ||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | impl BorderRenderElement { |
| 50 | - #[allow(clippy::too_many_arguments)] | |
| 51 | 50 | pub fn new( |
| 52 | 51 | size: Size<f64, Logical>, |
| 53 | 52 | gradient_area: Rectangle<f64, Logical>, |
| @@ -106,7 +105,6 @@ impl BorderRenderElement { | ||
| 106 | 105 | self.inner.damage_all(); |
| 107 | 106 | } |
| 108 | 107 | |
| 109 | - #[allow(clippy::too_many_arguments)] | |
| 110 | 108 | pub fn update( |
| 111 | 109 | &mut self, |
| 112 | 110 | size: Size<f64, Logical>, |
src/render_helpers/resize.rsmodified+0 -1
| @@ -20,7 +20,6 @@ use crate::backend::tty::{TtyFrame, TtyRenderer, TtyRendererError}; | ||
| 20 | 20 | pub struct ResizeRenderElement(ShaderRenderElement); |
| 21 | 21 | |
| 22 | 22 | impl ResizeRenderElement { |
| 23 | - #[allow(clippy::too_many_arguments)] | |
| 24 | 23 | pub fn new( |
| 25 | 24 | area: Rectangle<f64, Logical>, |
| 26 | 25 | scale: Scale<f64>, |
src/render_helpers/shader_element.rsmodified+0 -1
| @@ -178,7 +178,6 @@ impl ShaderProgram { | ||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | impl ShaderRenderElement { |
| 181 | - #[allow(clippy::too_many_arguments)] | |
| 182 | 181 | pub fn new( |
| 183 | 182 | program: ProgramType, |
| 184 | 183 | size: Size<f64, Logical>, |
src/render_helpers/shadow.rsmodified+0 -2
| @@ -39,7 +39,6 @@ struct Parameters { | ||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | impl ShadowRenderElement { |
| 42 | - #[allow(clippy::too_many_arguments)] | |
| 43 | 42 | pub fn new( |
| 44 | 43 | size: Size<f64, Logical>, |
| 45 | 44 | geometry: Rectangle<f64, Logical>, |
| @@ -92,7 +91,6 @@ impl ShadowRenderElement { | ||
| 92 | 91 | self.inner.damage_all(); |
| 93 | 92 | } |
| 94 | 93 | |
| 95 | - #[allow(clippy::too_many_arguments)] | |
| 96 | 94 | pub fn update( |
| 97 | 95 | &mut self, |
| 98 | 96 | size: Size<f64, Logical>, |
src/render_helpers/texture.rsmodified+0 -1
| @@ -50,7 +50,6 @@ impl<T: Texture> TextureBuffer<T> { | ||
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - #[allow(clippy::too_many_arguments)] | |
| 54 | 53 | pub fn from_memory<R: Renderer<TextureId = T> + ImportMem>( |
| 55 | 54 | renderer: &mut R, |
| 56 | 55 | data: &[u8], |
src/render_helpers/xray.rsmodified+0 -1
| @@ -93,7 +93,6 @@ impl Xray { | ||
| 93 | 93 | } |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - #[allow(clippy::too_many_arguments)] | |
| 97 | 96 | pub fn render( |
| 98 | 97 | &self, |
| 99 | 98 | ctx: RenderCtx<GlesRenderer>, |
src/screencasting/pw_utils.rsmodified+0 -2
| @@ -399,7 +399,6 @@ impl PipeWire { | ||
| 399 | 399 | }) |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | - #[allow(clippy::too_many_arguments)] | |
| 403 | 402 | pub fn start_cast( |
| 404 | 403 | &self, |
| 405 | 404 | gbm: Option<(GbmDevice<DeviceFd>, FormatSet)>, |
| @@ -1244,7 +1243,6 @@ impl Cast { | ||
| 1244 | 1243 | } |
| 1245 | 1244 | } |
| 1246 | 1245 | |
| 1247 | - #[allow(clippy::too_many_arguments)] | |
| 1248 | 1246 | pub fn dequeue_buffer_and_render( |
| 1249 | 1247 | &mut self, |
| 1250 | 1248 | renderer: &mut GlesRenderer, |
src/tests/window_opening.rsmodified+0 -1
| @@ -505,7 +505,6 @@ fn target_size() { | ||
| 505 | 505 | }); |
| 506 | 506 | } |
| 507 | 507 | |
| 508 | -#[allow(clippy::too_many_arguments)] | |
| 509 | 508 | fn check_target_size( |
| 510 | 509 | open_fullscreen: Option<&str>, |
| 511 | 510 | want_fullscreen: WantFullscreen, |
src/ui/mru.rsmodified+0 -1
| @@ -335,7 +335,6 @@ impl Thumbnail { | ||
| 335 | 335 | }) |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | - #[allow(clippy::too_many_arguments)] | |
| 339 | 338 | fn render<R: NiriRenderer>( |
| 340 | 339 | &self, |
| 341 | 340 | mut ctx: RenderCtx<R>, |