mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Clarify why type_complexity is exempted in Profile::comparable
This commit is contained in:
parent
1d965018a4
commit
93c8e8e3a2
@ -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,
|
||||
) -> (
|
||||
|
Loading…
x
Reference in New Issue
Block a user