Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 45108b1

Browse files
committed
rustdoc: simplify boolean condition (clippy::nonminimal_bool)
1 parent 7aad89a commit 45108b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ fn filter_non_trait_generics(trait_did: DefId, mut g: clean::Generics) -> clean:
577577
name: ref _name,
578578
},
579579
ref bounds,
580-
} => !(*s == "Self" && did == trait_did) && !bounds.is_empty(),
580+
} => !(bounds.is_empty() || *s == "Self" && did == trait_did),
581581
_ => true,
582582
});
583583
g

0 commit comments

Comments
 (0)