diff --git a/src/cargo/core/profiles.rs b/src/cargo/core/profiles.rs index 96df1a231..1c5f2fa46 100644 --- a/src/cargo/core/profiles.rs +++ b/src/cargo/core/profiles.rs @@ -495,7 +495,8 @@ impl Profile { /// Compare all fields except `name`, which doesn't affect compilation. /// This is necessary for `Unit` deduplication for things like "test" and /// "dev" which are essentially the same. - #[cfg_attr(feature = "cargo-clippy", allow(type_complexity))] // exempted + // The complexity of the result type is exempted because it's limited in scope. + #[cfg_attr(feature = "cargo-clippy", allow(type_complexity))] fn comparable( &self, ) -> (