diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 178571369b2a0b7eadad647233eccdf02519859e..a69dc69f28579a11ebb9602c0fdcc392c897f641 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -2835,6 +2835,7 @@ impl FocusableView for InlineAssistant { } impl InlineAssistant { + #[allow(clippy::too_many_arguments)] fn new( id: usize, measurements: Rc>, diff --git a/crates/collab/src/db/queries/messages.rs b/crates/collab/src/db/queries/messages.rs index d63b4cf1c5dd58afb101eb629934cf28a2c72284..8143007e19902269673fd52b0ddc59c8896a819c 100644 --- a/crates/collab/src/db/queries/messages.rs +++ b/crates/collab/src/db/queries/messages.rs @@ -200,6 +200,7 @@ impl Database { } /// Creates a new channel message. + #[allow(clippy::too_many_arguments)] pub async fn create_channel_message( &self, channel_id: ChannelId, diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs index 550f2228403a78dcd801af8a265ec997f0e4654a..074bb44bcc25110374f1185774197a393381bcbd 100644 --- a/crates/collab/src/rpc.rs +++ b/crates/collab/src/rpc.rs @@ -543,6 +543,7 @@ impl Server { }) } + #[allow(clippy::too_many_arguments)] pub fn handle_connection( self: &Arc, connection: Connection, diff --git a/crates/collab/src/tests/randomized_test_helpers.rs b/crates/collab/src/tests/randomized_test_helpers.rs index 7d7abe7dfe4c68f53f613c10f9d47e8d462b5078..edce9c184de2364f6aefc48a8bef5335797a6d41 100644 --- a/crates/collab/src/tests/randomized_test_helpers.rs +++ b/crates/collab/src/tests/randomized_test_helpers.rs @@ -464,6 +464,7 @@ impl TestPlan { }) } + #[allow(clippy::too_many_arguments)] async fn apply_server_operation( plan: Arc>, deterministic: BackgroundExecutor, diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs index 14d0439237e4a73523d3209e5b98d5bd40cbfcf9..2df240564e6dc8cc001cf76c33cd8825e0281ee2 100644 --- a/crates/collab_ui/src/collab_titlebar_item.rs +++ b/crates/collab_ui/src/collab_titlebar_item.rs @@ -478,6 +478,7 @@ impl CollabTitlebarItem { ) } + #[allow(clippy::too_many_arguments)] fn render_collaborator( &self, user: &Arc, diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index b1e372b91e4b4976c78d7dd2fee5758ac31227d3..b0cc0822a4af88dd0d6a277975c2d6408a8b925b 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -2992,6 +2992,7 @@ impl LineWithInvisibles { ); } + #[allow(clippy::too_many_arguments)] fn draw_invisibles( &self, selection_ranges: &[Range], diff --git a/crates/language/src/syntax_map.rs b/crates/language/src/syntax_map.rs index 7d9258ab014164d04069d9103712a032b1ee2b08..9c38fe8611d29ba9c8c9b51de5f5771629cba0a1 100644 --- a/crates/language/src/syntax_map.rs +++ b/crates/language/src/syntax_map.rs @@ -1180,6 +1180,7 @@ fn parse_text( }) } +#[allow(clippy::too_many_arguments)] fn get_injections( config: &InjectionConfig, text: &BufferSnapshot, diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 2f92ac71dea3829ad8317fad24b3ddb38e6cd2b4..1652e340445ab711193ce7268a5921597082de05 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -261,6 +261,7 @@ impl LanguageServer { Ok(server) } + #[allow(clippy::too_many_arguments)] fn new_internal( server_id: LanguageServerId, stdin: Stdin, diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 5aefc19e3291dfe34f94f2b3e29292e6920c1057..043dfe278ef4bdfce013275ae1fc5e122f5f70bd 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -2909,6 +2909,7 @@ impl Project { })) } + #[allow(clippy::too_many_arguments)] async fn setup_and_insert_language_server( this: WeakModel, worktree_path: &Path, @@ -6182,6 +6183,7 @@ impl Project { } /// Pick paths that might potentially contain a match of a given search query. + #[allow(clippy::too_many_arguments)] async fn background_search( unnamed_buffers: Vec>, opened_buffers: HashMap, (Model, BufferSnapshot)>, diff --git a/crates/project_core/src/worktree.rs b/crates/project_core/src/worktree.rs index 7bdb7cbd7d7ad0441079902284c65cf84f54e7fc..2fe51e67bafc5f37ea395cbc4af22232ac2520e6 100644 --- a/crates/project_core/src/worktree.rs +++ b/crates/project_core/src/worktree.rs @@ -3299,6 +3299,7 @@ enum BackgroundScannerPhase { } impl BackgroundScanner { + #[allow(clippy::too_many_arguments)] fn new( snapshot: LocalSnapshot, next_entry_id: Arc, diff --git a/crates/rich_text/src/rich_text.rs b/crates/rich_text/src/rich_text.rs index effa671590818b16cc7c5c49749cbea8f1dca93b..2e5a28351dce17949c4c9861a88896809ec34b52 100644 --- a/crates/rich_text/src/rich_text.rs +++ b/crates/rich_text/src/rich_text.rs @@ -124,6 +124,7 @@ impl RichText { } } +#[allow(clippy::too_many_arguments)] pub fn render_markdown_mut( block: &str, mut mentions: &[Mention], diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 3ef3bab333630c7f97cc93e75028e786e01d372b..ec3503d2282dc041b60bfabc44c5947e3bb83558 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -303,6 +303,7 @@ pub struct TerminalBuilder { } impl TerminalBuilder { + #[allow(clippy::too_many_arguments)] pub fn new( working_directory: Option, task: Option, diff --git a/crates/workspace/src/pane_group.rs b/crates/workspace/src/pane_group.rs index 6f55dc800e3dcd4ff5b6e18edbe9c2d6b53026ec..40c636c26f65b9005c9e123c69af6e7b5d92a4b2 100644 --- a/crates/workspace/src/pane_group.rs +++ b/crates/workspace/src/pane_group.rs @@ -88,6 +88,7 @@ impl PaneGroup { }; } + #[allow(clippy::too_many_arguments)] pub(crate) fn render( &self, project: &Model, @@ -159,6 +160,7 @@ impl Member { } } + #[allow(clippy::too_many_arguments)] pub fn render( &self, project: &Model, @@ -471,6 +473,7 @@ impl PaneAxis { None } + #[allow(clippy::too_many_arguments)] fn render( &self, project: &Model, @@ -640,6 +643,7 @@ mod element { self } + #[allow(clippy::too_many_arguments)] fn compute_resize( flexes: &Arc>>, e: &MouseMoveEvent, @@ -728,6 +732,7 @@ mod element { cx.refresh(); } + #[allow(clippy::too_many_arguments)] fn push_handle( flexes: Arc>>, dragged_handle: Rc>>, diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs index 92e8a9807a014e5b56041c1e14c4bfcb6dbcaad4..84dec859d280fd5f4f8d7e9d3f86961845e5f3d0 100644 --- a/tooling/xtask/src/main.rs +++ b/tooling/xtask/src/main.rs @@ -123,7 +123,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> { "clippy::search_is_some", "clippy::single_range_in_vec_init", "clippy::suspicious_to_owned", - "clippy::too_many_arguments", "clippy::type_complexity", "clippy::unit_arg", "clippy::unnecessary_filter_map",