Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::needless_borrowed_reference` (#8746)
Marshall Bowersca9d5a2f6b24
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 05ec9c23249..49d6c4d44c3 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -3273,7 +3273,7 @@ impl PositionMap {let (column, x_overshoot_after_line_end) = if let Some(line) = self.line_layouts.get(row as usize - scroll_position.y as usize)- .map(|&LineWithInvisibles { ref line, .. }| line)+ .map(|LineWithInvisibles { line, .. }| line){if let Some(ix) = line.index_for_x(x) {(ix as u32, px(0.))diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 174a6cbf13f..57c299b0fe1 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -100,7 +100,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::iter_overeager_cloned","clippy::let_underscore_future","clippy::map_entry",- "clippy::needless_borrowed_reference","clippy::needless_lifetimes","clippy::needless_option_as_deref","clippy::needless_question_mark",