Skip to content

Commit a1c84da

Browse files
committed
Reformat after the rename
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 20ec405 commit a1c84da

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

src/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl<M: GuestMemory> GuestMemoryExclusiveGuard<'_, M> {
151151
mod tests {
152152
use super::*;
153153
use crate::region::tests::{new_guest_memory_collection_from_regions, Collection, MockRegion};
154-
use crate::{GuestAddress, GuestMemoryBackend, GuestMemoryRegion, GuestUsize, GuestMemory};
154+
use crate::{GuestAddress, GuestMemory, GuestMemoryBackend, GuestMemoryRegion, GuestUsize};
155155

156156
type GuestMemoryMmapAtomic = GuestMemoryAtomic<Collection>;
157157

src/iommu.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use crate::guest_memory::{
1818
Result as GuestMemoryResult,
1919
};
2020
use crate::{
21-
Address, GuestAddress, GuestMemoryBackend, GuestMemoryRegion, GuestUsize, GuestMemory, Permissions,
22-
VolatileSlice,
21+
Address, GuestAddress, GuestMemory, GuestMemoryBackend, GuestMemoryRegion, GuestUsize,
22+
Permissions, VolatileSlice,
2323
};
2424
use rangemap::RangeMap;
2525
use std::cmp;
@@ -373,7 +373,12 @@ impl TryFrom<Range<u64>> for IovaRange {
373373

374374
impl<M: GuestMemoryBackend, I: Iommu> IommuMemory<M, I> {
375375
/// Create a new `IommuMemory` instance.
376-
pub fn new(backend: M, iommu: I, use_iommu: bool, bitmap: <Self as GuestMemory>::Bitmap) -> Self {
376+
pub fn new(
377+
backend: M,
378+
iommu: I,
379+
use_iommu: bool,
380+
bitmap: <Self as GuestMemory>::Bitmap,
381+
) -> Self {
377382
IommuMemory {
378383
backend,
379384
iommu: Arc::new(iommu),
@@ -670,7 +675,7 @@ mod tests {
670675
use crate::GuestMemoryRegion;
671676
#[cfg(feature = "backend-mmap")]
672677
use crate::{
673-
Bytes, GuestMemoryError, GuestMemoryMmap, GuestMemoryResult, GuestMemory, IommuMemory,
678+
Bytes, GuestMemory, GuestMemoryError, GuestMemoryMmap, GuestMemoryResult, IommuMemory,
674679
};
675680
use crate::{GuestAddress, Iommu, Iotlb, Permissions};
676681
use std::fmt::Debug;

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ pub use endian::{Be16, Be32, Be64, BeSize, Le16, Le32, Le64, LeSize};
5252

5353
pub mod guest_memory;
5454
pub use guest_memory::{
55-
Error as GuestMemoryError, FileOffset, GuestAddress, GuestAddressSpace, GuestMemoryBackend,
56-
GuestUsize, GuestMemory, MemoryRegionAddress, Permissions, Result as GuestMemoryResult,
55+
Error as GuestMemoryError, FileOffset, GuestAddress, GuestAddressSpace, GuestMemory,
56+
GuestMemoryBackend, GuestUsize, MemoryRegionAddress, Permissions, Result as GuestMemoryResult,
5757
};
5858

5959
pub mod region;

src/region.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ impl<R: GuestMemoryRegionBytes> Bytes<MemoryRegionAddress> for R {
476476
pub(crate) mod tests {
477477
use crate::region::{GuestMemoryRegionBytes, GuestRegionCollectionError};
478478
use crate::{
479-
Address, GuestAddress, GuestMemoryBackend, GuestMemoryRegion, GuestRegionCollection, GuestUsize,
479+
Address, GuestAddress, GuestMemoryBackend, GuestMemoryRegion, GuestRegionCollection,
480+
GuestUsize,
480481
};
481482
use matches::assert_matches;
482483
use std::sync::Arc;

0 commit comments

Comments
 (0)