From cb5ffde9eed5ebf55cfbeb03d693a2e01c148afa Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Mon, 27 Jan 2025 20:13:29 +0000 Subject: [PATCH] Change `#[must_use]` to be the same as stdlib --- primitives/src/witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/src/witness.rs b/primitives/src/witness.rs index 4d0bb9bc5..abec3e1fb 100644 --- a/primitives/src/witness.rs +++ b/primitives/src/witness.rs @@ -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 } }