Change #[must_use] message of Iterator
This commit is contained in:
parent
6d442938e0
commit
a6535d78dc
3 changed files with 23 additions and 23 deletions
|
|
@ -28,7 +28,7 @@ fn foo<T>(iter: T) where T: StreamingIterator, for<'a> T::Item<'a>: Display { /*
|
|||
|
||||
// Full example of enumerate iterator
|
||||
|
||||
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
|
||||
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
||||
struct StreamEnumerate<I> {
|
||||
iter: I,
|
||||
count: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue