Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett

Add #[must_use] to len and is_empty

Parent issue: #89692

r? `@joshtriplett`
This commit is contained in:
Matthias Krüger
2021-10-31 13:20:05 +01:00
committed by GitHub
14 changed files with 60 additions and 40 deletions

View File

@@ -1080,6 +1080,7 @@ impl Metadata {
/// Ok(())
/// }
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn len(&self) -> u64 {
self.0.size()