std: override clone_from for Vec.
A vector can reuse its allocation (and the allocations/resources of any contained values) when cloning into an already-instantiated vector, so we might as well do so.
This commit is contained in:
parent
0bd6f2ce0b
commit
f5a4837df0
2 changed files with 53 additions and 4 deletions
|
@ -232,4 +232,5 @@ mod std {
|
|||
pub use to_str;
|
||||
pub use ty;
|
||||
pub use unstable;
|
||||
pub use vec;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue