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.

Enable `clippy::implied_bounds_in_impls` (#8906)

Marshall Bowersaddfcdea8db9
diff --git a/Cargo.toml b/Cargo.toml
index c1102dec925..c33252f8a47 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -375,7 +375,6 @@ borrowed_box = "allow"
cast_abs_to_unsigned = "allow"
derive_ord_xor_partial_ord = "allow"
eq_op = "allow"
-implied_bounds_in_impls = "allow"
let_underscore_future = "allow"
map_entry = "allow"
never_loop = "allow"
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 5248671ad24..493a99dbe79 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -630,7 +630,7 @@ impl Pane {
self.items.len()
}
- pub fn items(&self) -> impl Iterator<Item = &Box<dyn ItemHandle>> + DoubleEndedIterator {
+ pub fn items(&self) -> impl DoubleEndedIterator<Item = &Box<dyn ItemHandle>> {
self.items.iter()
}