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"
1919 collapsible_match = "allow"
2020 needless_bool = "allow"
2121
22+# Silence, Clippy
23+# A Smithay user is talking
24+too_many_arguments = "allow"
25+
2226 [workspace.dependencies]
2327 anyhow = "1.0.104"
2428 bitflags = "2.13"
src/dbus/freedesktop_a11y.rsmodified+0 -1
@@ -250,7 +250,6 @@ impl KeyboardMonitor {
250250 }
251251
252252 impl KeyboardMonitor {
253- #[allow(clippy::too_many_arguments)]
254253 pub fn process_key(
255254 &self,
256255 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
50085008 ///
50095009 /// A bind whose press action is rate-limited by its cooldown is skipped entirely:
50105010 /// No action runs, and no release action is recorded.
5011-#[allow(clippy::too_many_arguments)]
50125011 fn should_intercept_key<'a>(
50135012 suppressed_keys: &mut HashSet<Keycode>,
50145013 pending_release_binds: &mut HashMap<Keycode, Bind>,
src/layout/focus_ring.rsmodified+0 -1
@@ -54,7 +54,6 @@ impl FocusRing {
5454 }
5555 }
5656
57- #[allow(clippy::too_many_arguments)]
5857 pub fn update_render_elements(
5958 &mut self,
6059 win_size: Size<f64, Logical>,
src/layout/mod.rsmodified+0 -2
@@ -199,7 +199,6 @@ pub trait LayoutElement {
199199 }
200200
201201 /// Renders the background effect behind the main surface of the element.
202- #[allow(clippy::too_many_arguments)]
203202 fn render_background_effect(
204203 &self,
205204 _ctx: RenderCtx<GlesRenderer>,
@@ -969,7 +968,6 @@ impl<W: LayoutElement> Layout<W> {
969968 /// Adds a new window to the layout.
970969 ///
971970 /// Returns an output that the window was added to, if there were any outputs.
972- #[allow(clippy::too_many_arguments)]
973971 pub fn add_window(
974972 &mut self,
975973 window: W,
src/layout/monitor.rsmodified+0 -1
@@ -573,7 +573,6 @@ impl<W: LayoutElement> Monitor<W> {
573573 }
574574 }
575575
576- #[allow(clippy::too_many_arguments)]
577576 pub fn add_tile(
578577 &mut self,
579578 tile: Tile<W>,
src/layout/scrolling.rsmodified+0 -1
@@ -3964,7 +3964,6 @@ impl WindowHeight {
39643964 }
39653965
39663966 impl<W: LayoutElement> Column<W> {
3967- #[allow(clippy::too_many_arguments)]
39683967 fn new_with_tile(
39693968 tile: Tile<W>,
39703969 view_size: Size<f64, Logical>,
src/layout/tab_indicator.rsmodified+0 -1
@@ -154,7 +154,6 @@ impl TabIndicator {
154154 })
155155 }
156156
157- #[allow(clippy::too_many_arguments)]
158157 pub fn update_render_elements(
159158 &mut self,
160159 enabled: bool,
src/layout/workspace.rsmodified+0 -1
@@ -632,7 +632,6 @@ impl<W: LayoutElement> Workspace<W> {
632632 )
633633 }
634634
635- #[allow(clippy::too_many_arguments)]
636635 pub fn add_tile(
637636 &mut self,
638637 mut tile: Tile<W>,
src/niri.rsmodified+0 -3
@@ -5009,7 +5009,6 @@ impl Niri {
50095009 })
50105010 }
50115011
5012- #[allow(clippy::too_many_arguments)]
50135012 fn render_layer_normal<R: NiriRenderer>(
50145013 &self,
50155014 mut ctx: RenderCtx<R>,
@@ -5027,7 +5026,6 @@ impl Niri {
50275026 }
50285027 }
50295028
5030- #[allow(clippy::too_many_arguments)]
50315029 fn render_layer_popups<R: NiriRenderer>(
50325030 &self,
50335031 mut ctx: RenderCtx<R>,
@@ -5873,7 +5871,6 @@ impl Niri {
58735871 /// Renders the elements into the frame's buffer and completes the frame.
58745872 ///
58755873 /// Returns `true` if it succeeded and `false` otherwise.
5876- #[allow(clippy::too_many_arguments)]
58775874 fn capture_image_copy_frame(
58785875 &self,
58795876 renderer: &mut GlesRenderer,
src/render_helpers/background_effect.rsmodified+0 -3
@@ -278,9 +278,6 @@ pub fn damage_surface(states: &SurfaceData) {
278278 }
279279 }
280280
281-// Silence, Clippy
282-// A Smithay user is talking
283-#[allow(clippy::too_many_arguments)]
284281 pub fn render_for_tile(
285282 ctx: RenderCtx<GlesRenderer>,
286283 ns: Option<usize>,
src/render_helpers/border.rsmodified+0 -2
@@ -47,7 +47,6 @@ struct Parameters {
4747 }
4848
4949 impl BorderRenderElement {
50- #[allow(clippy::too_many_arguments)]
5150 pub fn new(
5251 size: Size<f64, Logical>,
5352 gradient_area: Rectangle<f64, Logical>,
@@ -106,7 +105,6 @@ impl BorderRenderElement {
106105 self.inner.damage_all();
107106 }
108107
109- #[allow(clippy::too_many_arguments)]
110108 pub fn update(
111109 &mut self,
112110 size: Size<f64, Logical>,
src/render_helpers/resize.rsmodified+0 -1
@@ -20,7 +20,6 @@ use crate::backend::tty::{TtyFrame, TtyRenderer, TtyRendererError};
2020 pub struct ResizeRenderElement(ShaderRenderElement);
2121
2222 impl ResizeRenderElement {
23- #[allow(clippy::too_many_arguments)]
2423 pub fn new(
2524 area: Rectangle<f64, Logical>,
2625 scale: Scale<f64>,
src/render_helpers/shader_element.rsmodified+0 -1
@@ -178,7 +178,6 @@ impl ShaderProgram {
178178 }
179179
180180 impl ShaderRenderElement {
181- #[allow(clippy::too_many_arguments)]
182181 pub fn new(
183182 program: ProgramType,
184183 size: Size<f64, Logical>,
src/render_helpers/shadow.rsmodified+0 -2
@@ -39,7 +39,6 @@ struct Parameters {
3939 }
4040
4141 impl ShadowRenderElement {
42- #[allow(clippy::too_many_arguments)]
4342 pub fn new(
4443 size: Size<f64, Logical>,
4544 geometry: Rectangle<f64, Logical>,
@@ -92,7 +91,6 @@ impl ShadowRenderElement {
9291 self.inner.damage_all();
9392 }
9493
95- #[allow(clippy::too_many_arguments)]
9694 pub fn update(
9795 &mut self,
9896 size: Size<f64, Logical>,
src/render_helpers/texture.rsmodified+0 -1
@@ -50,7 +50,6 @@ impl<T: Texture> TextureBuffer<T> {
5050 }
5151 }
5252
53- #[allow(clippy::too_many_arguments)]
5453 pub fn from_memory<R: Renderer<TextureId = T> + ImportMem>(
5554 renderer: &mut R,
5655 data: &[u8],
src/render_helpers/xray.rsmodified+0 -1
@@ -93,7 +93,6 @@ impl Xray {
9393 }
9494 }
9595
96- #[allow(clippy::too_many_arguments)]
9796 pub fn render(
9897 &self,
9998 ctx: RenderCtx<GlesRenderer>,
src/screencasting/pw_utils.rsmodified+0 -2
@@ -399,7 +399,6 @@ impl PipeWire {
399399 })
400400 }
401401
402- #[allow(clippy::too_many_arguments)]
403402 pub fn start_cast(
404403 &self,
405404 gbm: Option<(GbmDevice<DeviceFd>, FormatSet)>,
@@ -1244,7 +1243,6 @@ impl Cast {
12441243 }
12451244 }
12461245
1247- #[allow(clippy::too_many_arguments)]
12481246 pub fn dequeue_buffer_and_render(
12491247 &mut self,
12501248 renderer: &mut GlesRenderer,
src/tests/window_opening.rsmodified+0 -1
@@ -505,7 +505,6 @@ fn target_size() {
505505 });
506506 }
507507
508-#[allow(clippy::too_many_arguments)]
509508 fn check_target_size(
510509 open_fullscreen: Option<&str>,
511510 want_fullscreen: WantFullscreen,
src/ui/mru.rsmodified+0 -1
@@ -335,7 +335,6 @@ impl Thumbnail {
335335 })
336336 }
337337
338- #[allow(clippy::too_many_arguments)]
339338 fn render<R: NiriRenderer>(
340339 &self,
341340 mut ctx: RenderCtx<R>,