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: