Skip to content

Commit

Permalink
string: remove needless binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Aug 11, 2016
1 parent 0ef24ee commit 071410b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 071410b

Please sign in to comment.