Skip to content

Commit fbd1426

Browse files
bonziniShadowCurse
authored andcommitted
make GuestAddressSpace require Clone
All of our implementation already provide it, just make it part of the interface. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 883f4f0 commit fbd1426

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- \[[#312](https://github.com/rust-vmm/vm-memory/pull/312)\] `GuestRegionContainer`, a generic container of `GuestMemoryRegion`s, generalizing `GuestMemoryMmap` (which
99
is now a type alias for `GuestRegionContainer<GuestRegionMmap>`).
1010
- \[[#338](https://github.com/rust-vmm/vm-memory/pull/338)\] Make `GuestMemoryAtomic` always implement `Clone`.
11+
- \[[#338](https://github.com/rust-vmm/vm-memory/pull/338)\] Make `GuestAddressSpace` a subtrait of `Clone`.
1112

1213
### Changed
1314

src/guest_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl FileOffset {
219219
/// # }
220220
/// # }
221221
/// ```
222-
pub trait GuestAddressSpace {
222+
pub trait GuestAddressSpace: Clone {
223223
/// The type that will be used to access guest memory.
224224
type M: GuestMemory;
225225

0 commit comments

Comments
 (0)