Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- \[[#327](https://github.com/rust-vmm/vm-memory/pull/327)\] I/O virtual memory support via `IoMemory`, `IommuMemory`, and `Iommu`/`Iotlb`

### Fixed

- \[[#361](https://github.com/rust-vmm/vm-memory/pull/361)\] clippy: allow mut_from_ref

## \[v0.17.1\]

No visible changes.
Expand Down
3 changes: 3 additions & 0 deletions src/volatile_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ pub trait VolatileMemory {
///
/// If the resulting pointer is not aligned, this method will return an
/// [`Error`](enum.Error.html).
// the function is unsafe, and the conversion is safe if following the safety
// instrutions above
#[allow(clippy::mut_from_ref)]
unsafe fn aligned_as_mut<T: ByteValued>(&self, offset: usize) -> Result<&mut T> {
let slice = self.get_slice(offset, size_of::<T>())?;
slice.check_alignment(align_of::<T>())?;
Expand Down