Skip to content

Commit 7593104

Browse files
committed
Fix liballoc tests
1 parent 1e07ca1 commit 7593104

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/tests/vec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ fn test_drain_inclusive_out_of_bounds() {
583583
fn test_splice() {
584584
let mut v = vec![1, 2, 3, 4, 5];
585585
let a = [10, 11, 12];
586-
v.splice(2..4, a.iter().cloned());
586+
let _ = v.splice(2..4, a.iter().cloned());
587587
assert_eq!(v, &[1, 2, 10, 11, 12, 5]);
588588
v.splice(1..3, Some(20));
589589
assert_eq!(v, &[1, 20, 11, 12, 5]);
@@ -606,15 +606,15 @@ fn test_splice_inclusive_range() {
606606
fn test_splice_out_of_bounds() {
607607
let mut v = vec![1, 2, 3, 4, 5];
608608
let a = [10, 11, 12];
609-
v.splice(5..6, a.iter().cloned());
609+
let _ = v.splice(5..6, a.iter().cloned());
610610
}
611611

612612
#[test]
613613
#[should_panic]
614614
fn test_splice_inclusive_out_of_bounds() {
615615
let mut v = vec![1, 2, 3, 4, 5];
616616
let a = [10, 11, 12];
617-
v.splice(5..=5, a.iter().cloned());
617+
let _ = v.splice(5..=5, a.iter().cloned());
618618
}
619619

620620
#[test]

0 commit comments

Comments
 (0)