Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::suspicious_to_owned` (#9004)
Kirpal Grewal85e6bc94e980
diff --git a/Cargo.toml b/Cargo.tomlindex 963901d40d6..f9b5cb38813 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -400,7 +400,6 @@ non_canonical_clone_impl = "allow"non_canonical_partial_ord_impl = "allow"reversed_empty_ranges = "allow"single_range_in_vec_init = "allow"-suspicious_to_owned = "allow"type_complexity = "allow"[workspace.metadata.cargo-machete]diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex ffec512c1a8..71ba6127e96 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -224,7 +224,7 @@ impl Clone for Toast {fn clone(&self) -> Self {Toast {id: self.id,- msg: self.msg.to_owned(),+ msg: self.msg.clone(),on_click: self.on_click.clone(),}}