Clarify why type_complexity is exempted in Profile::comparable

This commit is contained in:
Dale Wijnand 2018-07-23 07:02:13 +01:00
parent 1d965018a4
commit 93c8e8e3a2
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF

View File

@ -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,
) -> (