Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::to_string_in_format_args` (#8732)
Marshall Bowers8bc35c33c5e2
diff --git a/crates/editor/src/movement.rs b/crates/editor/src/movement.rsindex 5e0ca2c6eb0..d52255cd514 100644--- a/crates/editor/src/movement.rs+++ b/crates/editor/src/movement.rs@@ -841,7 +841,7 @@ mod tests {surrounding_word(&snapshot, display_points[1]),display_points[0]..display_points[2],"{}",- marked_text.to_string()+ marked_text);}diff --git a/crates/editor/src/test/editor_test_context.rs b/crates/editor/src/test/editor_test_context.rsindex 11ee49ac958..d4a5ee7c6e3 100644--- a/crates/editor/src/test/editor_test_context.rs+++ b/crates/editor/src/test/editor_test_context.rs@@ -236,7 +236,7 @@ impl EditorTestContext {pub fn set_state(&mut self, marked_text: &str) -> ContextHandle {let state_context = self.add_assertion_context(format!("Initial Editor State: \"{}\"",- marked_text.escape_debug().to_string()+ marked_text.escape_debug()));let (unmarked_text, selection_ranges) = marked_text_ranges(marked_text, true);self.editor.update(&mut self.cx, |editor, cx| {@@ -252,7 +252,7 @@ impl EditorTestContext {pub fn set_selections_state(&mut self, marked_text: &str) -> ContextHandle {let state_context = self.add_assertion_context(format!("Initial Editor State: \"{}\"",- marked_text.escape_debug().to_string()+ marked_text.escape_debug()));let (unmarked_text, selection_ranges) = marked_text_ranges(marked_text, true);self.editor.update(&mut self.cx, |editor, cx| {diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex cd7ce241701..0d8a4e9457c 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -124,7 +124,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::search_is_some","clippy::single_range_in_vec_init","clippy::suspicious_to_owned",- "clippy::to_string_in_format_args","clippy::too_many_arguments","clippy::type_complexity","clippy::unit_arg",