From 9e855610f85a437f04f2ba11c0436694f9a98203 Mon Sep 17 00:00:00 2001 From: Riley Shahar Date: Tue, 21 Feb 2023 17:58:57 -0800 Subject: [PATCH] Fix rustformat error --- src/address_space.rs | 5 ++--- src/lib.rs | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/address_space.rs b/src/address_space.rs index 8bbf908..d8a1d51 100644 --- a/src/address_space.rs +++ b/src/address_space.rs @@ -79,14 +79,14 @@ impl AddressSpace { /// Look up the DataSource and offset within that DataSource for a /// VirtualAddress / AccessType in this AddressSpace - /// + /// /// # Errors /// If this VirtualAddress does not have a valid mapping in &self, /// or if this AccessType is not permitted by the mapping pub fn get_source_for_addr( &self, addr: VirtualAddress, - access_type: FlagBuilder + access_type: FlagBuilder, ) -> Result<(&D, usize), &str> { todo!(); } @@ -218,4 +218,3 @@ impl FlagBuilder { } } } - diff --git a/src/lib.rs b/src/lib.rs index 2e974a4..95a0f6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,9 @@ mod tests { let offset: usize = 0; let length: usize = 1; - let addr = addr_space.add_mapping(&data_source, offset, length).unwrap(); + let addr = addr_space + .add_mapping(&data_source, offset, length) + .unwrap(); assert!(addr != 0); // we should move these tests into addr_space, since they access non-public internals of the structure: