diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-09 11:50:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-09 11:50:40 -0700 |
| commit | 887f9e7e919888a7eeeacdd5b2702f302e84a5d8 (patch) | |
| tree | 9aa018e3539ed1e0394d5811f6e1147ee32a4df4 /src/liballoc | |
| parent | 178cdc547114dbe01a72197703e32d4879167cd7 (diff) | |
| parent | 7bc85e29c94084a5b24af4b38a6d9dd7f9177f06 (diff) | |
| download | rust-887f9e7e919888a7eeeacdd5b2702f302e84a5d8.tar.gz rust-887f9e7e919888a7eeeacdd5b2702f302e84a5d8.zip | |
Rollup merge of #74142 - pickfire:patch-1, r=dtolnay
Liballoc use vec instead of vector Keep congruency with other parts, full word vector is rarely used.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/slice.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index d7dc2174d66..3dbe2442866 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -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 } } |
