Skip to content

Commit

Permalink
Rollup merge of #74142 - pickfire:patch-1, r=dtolnay
Browse files Browse the repository at this point in the history
Liballoc use vec instead of vector

Keep congruency with other parts, full word vector is rarely used.
  • Loading branch information
Manishearth committed Jul 9, 2020
2 parents 178cdc5 + 7bc85e2 commit 887f9e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/liballoc/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ mod hack {
where
T: Clone,
{
let mut vector = Vec::with_capacity(s.len());
vector.extend_from_slice(s);
vector
let mut vec = Vec::with_capacity(s.len());
vec.extend_from_slice(s);
vec
}
}

Expand Down

0 comments on commit 887f9e7

Please sign in to comment.