Skip to content

Commit

Permalink
Implement Copy for std::alloc::Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 20, 2018
1 parent 1a44439 commit 1caaafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn size_align<T>() -> (usize, usize) {
/// requests have positive size. A caller to the `Alloc::alloc`
/// method must either ensure that conditions like this are met, or
/// use specific allocators with looser requirements.)
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct Layout {
// size of the requested block of memory, measured in bytes.
size: usize,
Expand Down

0 comments on commit 1caaafd

Please sign in to comment.