From addfcdea8db96eaa0573419b47dba372fb3c5ed7 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 5 Mar 2024 16:04:55 -0500 Subject: [PATCH] Enable `clippy::implied_bounds_in_impls` (#8906) This PR enables the [`clippy::implied_bounds_in_impls`](https://rust-lang.github.io/rust-clippy/master/index.html#/implied_bounds_in_impls) rule and fixes the outstanding violations. Release Notes: - N/A --- Cargo.toml | 1 - crates/workspace/src/pane.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c1102dec92..c33252f8a4 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 5248671ad2..493a99dbe7 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> + DoubleEndedIterator { + pub fn items(&self) -> impl DoubleEndedIterator> { self.items.iter() }