Skip to content

Commit eaf8bf1

Browse files
committed
Ignore unused result in replace_range
1 parent 74b097c commit eaf8bf1

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
@@ -1568,7 +1568,7 @@ impl String {
15681568
Unbounded => {},
15691569
};
15701570

1571-
unsafe {
1571+
let _ = unsafe {
15721572
self.as_mut_vec()
15731573
}.splice(range, replace_with.bytes());
15741574
}

0 commit comments

Comments
 (0)