Rollup merge of #35598 - tshepang:needless-binding, r=steveklabnik
string: remove needless binding
This commit is contained in:
commit
b975a120e1
@ -1182,8 +1182,7 @@ impl String {
|
|||||||
reason = "recent addition",
|
reason = "recent addition",
|
||||||
issue = "35553")]
|
issue = "35553")]
|
||||||
pub fn insert_str(&mut self, idx: usize, string: &str) {
|
pub fn insert_str(&mut self, idx: usize, string: &str) {
|
||||||
let len = self.len();
|
assert!(idx <= self.len());
|
||||||
assert!(idx <= len);
|
|
||||||
assert!(self.is_char_boundary(idx));
|
assert!(self.is_char_boundary(idx));
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user