Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::unnecessary_operation` (#8752)
Marshall Bowers6a9e8faad2f7
diff --git a/crates/collab/src/db/tests/contributor_tests.rs b/crates/collab/src/db/tests/contributor_tests.rsindex c826f0083a9..f3a9dfbd40d 100644--- a/crates/collab/src/db/tests/contributor_tests.rs+++ b/crates/collab/src/db/tests/contributor_tests.rs@@ -18,8 +18,7 @@ async fn test_contributors(db: &Arc<Database>) {},).await- .unwrap()- .user_id;+ .unwrap();assert_eq!(db.get_contributors().await.unwrap(), Vec::<String>::new());diff --git a/crates/collab/src/db/tests/db_tests.rs b/crates/collab/src/db/tests/db_tests.rsindex 3149c8a8b67..54ce3f6f418 100644--- a/crates/collab/src/db/tests/db_tests.rs+++ b/crates/collab/src/db/tests/db_tests.rs@@ -87,8 +87,7 @@ async fn test_get_or_create_user_by_github_account(db: &Arc<Database>) {},).await- .unwrap()- .user_id;+ .unwrap();let user_id2 = db.create_user(diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 955baffd670..836e8826c4f 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -114,7 +114,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::single_range_in_vec_init","clippy::suspicious_to_owned","clippy::type_complexity",- "clippy::unnecessary_operation","clippy::unnecessary_to_owned","clippy::unnecessary_unwrap","clippy::useless_conversion",