mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
Cow::from(&*...) changed to Cow::Owned(Vec::from(...))
This commit is contained in:
parent
47e2cc2ea1
commit
235770c851
@ -371,7 +371,7 @@ impl Allocation {
|
||||
}
|
||||
// Create allocation.
|
||||
Ok(Allocation {
|
||||
bytes: AllocBytes::from_bytes(Cow::from(&*bytes), self.align),
|
||||
bytes: AllocBytes::from_bytes(Cow::Owned(Vec::from(bytes)), self.align),
|
||||
provenance: ProvenanceMap::from_presorted_ptrs(new_provenance),
|
||||
init_mask: self.init_mask,
|
||||
align: self.align,
|
||||
|
Loading…
Reference in New Issue
Block a user