Skip to content

Commit 5fa620e

Browse files
Update laziness.rs
6 iterators now have the `must_use` attribute so we need to update here because of the denied "unused_must_use" lint.
1 parent cba2e3a commit 5fa620e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/laziness.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ must_use_tests! {
192192
let _ = Panicking.combinations(2);
193193
}
194194
combinations_with_replacement {
195-
Panicking.combinations_with_replacement(0);
196-
Panicking.combinations_with_replacement(1);
197-
Panicking.combinations_with_replacement(2);
195+
let _ = Panicking.combinations_with_replacement(0);
196+
let _ = Panicking.combinations_with_replacement(1);
197+
let _ = Panicking.combinations_with_replacement(2);
198198
}
199199
permutations {
200200
let _ = Panicking.permutations(0);
@@ -217,7 +217,7 @@ must_use_tests! {
217217
let _ = Panicking.update(|n| *n += 1);
218218
}
219219
multipeek {
220-
Panicking.multipeek();
220+
let _ = Panicking.multipeek();
221221
}
222222
// Not iterator themselves but still lazy.
223223
into_grouping_map {
@@ -247,16 +247,16 @@ must_use_tests! {
247247
let _ = itertools::multizip((Panicking, Panicking));
248248
}
249249
put_back {
250-
itertools::put_back(Panicking);
251-
itertools::put_back(Panicking).with_value(15);
250+
let _ = itertools::put_back(Panicking);
251+
let _ = itertools::put_back(Panicking).with_value(15);
252252
}
253253
peek_nth {
254-
itertools::peek_nth(Panicking);
254+
let _ = itertools::peek_nth(Panicking);
255255
}
256256
put_back_n {
257-
itertools::put_back_n(Panicking);
257+
let _ = itertools::put_back_n(Panicking);
258258
}
259259
rciter {
260-
itertools::rciter(Panicking);
260+
let _ = itertools::rciter(Panicking);
261261
}
262262
}

0 commit comments

Comments
 (0)