string: remove needless binding
This commit is contained in:
parent
0ef24eed2f
commit
071410ba57
1 changed files with 1 additions and 2 deletions
|
|
@ -1182,8 +1182,7 @@ impl String {
|
|||
reason = "recent addition",
|
||||
issue = "0")]
|
||||
pub fn insert_str(&mut self, idx: usize, string: &str) {
|
||||
let len = self.len();
|
||||
assert!(idx <= len);
|
||||
assert!(idx <= self.len());
|
||||
assert!(self.is_char_boundary(idx));
|
||||
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue