Skip to content

Commit

Permalink
Rollup merge of rust-lang#35598 - tshepang:needless-binding, r=stevek…
Browse files Browse the repository at this point in the history
…labnik

string: remove needless binding
  • Loading branch information
eddyb committed Aug 14, 2016
2 parents 4ab8208 + 071410b commit c21bbba
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 = "35553")]
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 c21bbba

Please sign in to comment.