Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetbo committed Dec 2, 2024
1 parent aae8388 commit 7f9b244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions crates/editor/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,7 @@ impl EditorElement {
true
}

#[allow(clippy::too_many_arguments)]
fn layout_inline_completion_popover(
&self,
text_bounds: &Bounds<Pixels>,
Expand Down

0 comments on commit 7f9b244

Please sign in to comment.