We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e07ca1 commit 7593104Copy full SHA for 7593104
src/liballoc/tests/vec.rs
@@ -583,7 +583,7 @@ fn test_drain_inclusive_out_of_bounds() {
583
fn test_splice() {
584
let mut v = vec![1, 2, 3, 4, 5];
585
let a = [10, 11, 12];
586
- v.splice(2..4, a.iter().cloned());
+ let _ = v.splice(2..4, a.iter().cloned());
587
assert_eq!(v, &[1, 2, 10, 11, 12, 5]);
588
v.splice(1..3, Some(20));
589
assert_eq!(v, &[1, 20, 11, 12, 5]);
@@ -606,15 +606,15 @@ fn test_splice_inclusive_range() {
606
fn test_splice_out_of_bounds() {
607
608
609
- v.splice(5..6, a.iter().cloned());
+ let _ = v.splice(5..6, a.iter().cloned());
610
}
611
612
#[test]
613
#[should_panic]
614
fn test_splice_inclusive_out_of_bounds() {
615
616
617
- v.splice(5..=5, a.iter().cloned());
+ let _ = v.splice(5..=5, a.iter().cloned());
618
619
620
0 commit comments