forge
Explore
Log in

Don't you dare go Hollow

Globally silence too_many_arguments

Browse files at this commit

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