Skip to content

Commit 1455d73

Browse files
committed
Ignore unused result in replace_range
1 parent 57770d9 commit 1455d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ impl String {
15711571
Unbounded => {},
15721572
};
15731573

1574-
unsafe {
1574+
let _ = unsafe {
15751575
self.as_mut_vec()
15761576
}.splice(range, replace_with.bytes());
15771577
}

0 commit comments

Comments
 (0)