Change `#[must_use]` to be the same as stdlib

This commit is contained in:
Jamil Lambert, PhD 2025-01-27 20:13:29 +00:00
parent 9c15a31559
commit cb5ffde9ee
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ impl Witness {
pub fn is_empty(&self) -> bool { self.witness_elements == 0 }
/// Returns a struct implementing [`Iterator`].
#[must_use = "returned iterator should be used"]
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub fn iter(&self) -> Iter {
Iter { inner: self.content.as_slice(), indices_start: self.indices_start, current_index: 0 }
}