diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7cceff202f4070..48448bffd8950b 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5600,8 +5600,7 @@ impl Editor { .. } => { let id = post_inc(&mut self.next_inlay_id); - let new_inlays = - vec![Inlay::suggestion(id, position.clone(), text.clone())]; + let new_inlays = vec![Inlay::suggestion(id, *position, text.clone())]; let new_inlay_ids: Vec<_> = new_inlays.iter().map(|i| i.id).collect(); self.display_map.update(cx, { let old_inlay_ids = render_inlay_ids.clone(); diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 869ccb347a87b9..161aa1fefdd237 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -2724,6 +2724,7 @@ impl EditorElement { true } + #[allow(clippy::too_many_arguments)] fn layout_inline_completion_popover( &self, text_bounds: &Bounds,