diff options
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index a47213a62a5..87f52d2cfa2 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -497,8 +497,7 @@ impl Item { pub fn is_non_exhaustive(&self) -> bool { self.attrs.other_attrs.iter() - .filter(|a| a.name().as_str() == "non_exhaustive") - .count() > 0 + .any(|a| a.name().as_str() == "non_exhaustive") } /// Returns a documentation-level item type from the item. |
