Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::too_many_arguments` (#8734)
Marshall Bowersfc8e515fe865
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex 178571369b2..a69dc69f285 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<Cell<BlockMeasurements>>,diff --git a/crates/collab/src/db/queries/messages.rs b/crates/collab/src/db/queries/messages.rsindex d63b4cf1c5d..8143007e199 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.rsindex 550f2228403..074bb44bcc2 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<Self>,connection: Connection,diff --git a/crates/collab/src/tests/randomized_test_helpers.rs b/crates/collab/src/tests/randomized_test_helpers.rsindex 7d7abe7dfe4..edce9c184de 100644--- a/crates/collab/src/tests/randomized_test_helpers.rs+++ b/crates/collab/src/tests/randomized_test_helpers.rs@@ -464,6 +464,7 @@ impl<T: RandomizedTest> TestPlan<T> {})}+ #[allow(clippy::too_many_arguments)]async fn apply_server_operation(plan: Arc<Mutex<Self>>,deterministic: BackgroundExecutor,diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 14d0439237e..2df240564e6 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<User>,diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex b1e372b91e4..b0cc0822a4a 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<DisplayPoint>],diff --git a/crates/language/src/syntax_map.rs b/crates/language/src/syntax_map.rsindex 7d9258ab014..9c38fe8611d 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.rsindex 2f92ac71dea..1652e340445 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<Stdin, Stdout, Stderr, F>(server_id: LanguageServerId,stdin: Stdin,diff --git a/crates/project/src/project.rs b/crates/project/src/project.rsindex 5aefc19e329..043dfe278ef 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<Self>,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<Model<Buffer>>,opened_buffers: HashMap<Arc<Path>, (Model<Buffer>, BufferSnapshot)>,diff --git a/crates/project_core/src/worktree.rs b/crates/project_core/src/worktree.rsindex 7bdb7cbd7d7..2fe51e67baf 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<AtomicUsize>,diff --git a/crates/rich_text/src/rich_text.rs b/crates/rich_text/src/rich_text.rsindex effa6715908..2e5a28351dc 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.rsindex 3ef3bab3336..ec3503d2282 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<PathBuf>,task: Option<TaskState>,diff --git a/crates/workspace/src/pane_group.rs b/crates/workspace/src/pane_group.rsindex 6f55dc800e3..40c636c26f6 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<Project>,@@ -159,6 +160,7 @@ impl Member {}}+ #[allow(clippy::too_many_arguments)]pub fn render(&self,project: &Model<Project>,@@ -471,6 +473,7 @@ impl PaneAxis {None}+ #[allow(clippy::too_many_arguments)]fn render(&self,project: &Model<Project>,@@ -640,6 +643,7 @@ mod element {self}+ #[allow(clippy::too_many_arguments)]fn compute_resize(flexes: &Arc<Mutex<Vec<f32>>>,e: &MouseMoveEvent,@@ -728,6 +732,7 @@ mod element {cx.refresh();}+ #[allow(clippy::too_many_arguments)]fn push_handle(flexes: Arc<Mutex<Vec<f32>>>,dragged_handle: Rc<RefCell<Option<usize>>>,diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 92e8a9807a0..84dec859d28 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",