From 93c8e8e3a29f9f801bab945831c4b522dc4fba85 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Mon, 23 Jul 2018 07:02:13 +0100 Subject: [PATCH] Clarify why type_complexity is exempted in Profile::comparable --- src/cargo/core/profiles.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ) -> (