Change `#[must_use]` to be the same as stdlib
This commit is contained in:
parent
9c15a31559
commit
cb5ffde9ee
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue