Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Explicitly allow `clippy::new_without_default` style lint (#36434)

tidelyeecf142f06a1
diff --git a/Cargo.toml b/Cargo.toml
index 914f9e6837f..3edd8d802c6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -832,6 +832,8 @@ new_ret_no_self = { level = "allow" }
# compared to Iterator::next. Yet, clippy complains about those.
should_implement_trait = { level = "allow" }
let_underscore_future = "allow"
+# It doesn't make sense to implement `Default` unilaterally.
+new_without_default = "allow"
# in Rust it can be very tedious to reduce argument count without
# running afoul of the borrow checker.