@@ -181,9 +181,8 @@ impl MemoryMap {
181181 pub fn get_region ( & self , name : & str ) -> Option < MemoryRegionInfo > {
182182 let name_raw = name. to_cstr ( ) ;
183183 let mut result: BNMemoryRegionInfo = unsafe { std:: mem:: zeroed ( ) } ;
184- let found = unsafe {
185- BNGetMemoryRegionInfo ( self . view . handle , name_raw. as_ptr ( ) , & mut result)
186- } ;
184+ let found =
185+ unsafe { BNGetMemoryRegionInfo ( self . view . handle , name_raw. as_ptr ( ) , & mut result) } ;
187186 if !found {
188187 return None ;
189188 }
@@ -196,9 +195,7 @@ impl MemoryMap {
196195 /// enabled region covers the address.
197196 pub fn get_active_region_at ( & self , addr : u64 ) -> Option < MemoryRegionInfo > {
198197 let mut result: BNMemoryRegionInfo = unsafe { std:: mem:: zeroed ( ) } ;
199- let found = unsafe {
200- BNGetActiveMemoryRegionInfoAt ( self . view . handle , addr, & mut result)
201- } ;
198+ let found = unsafe { BNGetActiveMemoryRegionInfoAt ( self . view . handle , addr, & mut result) } ;
202199 if !found {
203200 return None ;
204201 }
@@ -211,9 +208,7 @@ impl MemoryMap {
211208 /// range covers the address.
212209 pub fn get_resolved_range_at ( & self , addr : u64 ) -> Option < ResolvedRange > {
213210 let mut result: BNResolvedMemoryRange = unsafe { std:: mem:: zeroed ( ) } ;
214- let found = unsafe {
215- BNGetResolvedMemoryRangeAt ( self . view . handle , addr, & mut result)
216- } ;
211+ let found = unsafe { BNGetResolvedMemoryRangeAt ( self . view . handle , addr, & mut result) } ;
217212 if !found {
218213 return None ;
219214 }
0 commit comments