File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -747,16 +747,13 @@ mod tests {
747
747
use linux_loader:: elf:: Elf64_Ehdr ;
748
748
#[ cfg( target_arch = "x86_64" ) ]
749
749
use linux_loader:: loader:: { self , bootparam:: setup_header, elf:: PvhBootCapability } ;
750
+ use std:: fs:: write;
750
751
use std:: io:: ErrorKind ;
751
752
#[ cfg( target_arch = "x86_64" ) ]
752
753
use std:: path:: Path ;
753
754
use std:: path:: PathBuf ;
754
- use std:: fs:: write;
755
755
#[ cfg( target_arch = "x86_64" ) ]
756
- use vm_memory:: {
757
- bytes:: ByteValued ,
758
- Address , GuestAddress , GuestMemory ,
759
- } ;
756
+ use vm_memory:: { bytes:: ByteValued , Address , GuestAddress , GuestMemory } ;
760
757
761
758
use vmm_sys_util:: { tempdir:: TempDir , tempfile:: TempFile } ;
762
759
@@ -1206,7 +1203,9 @@ mod tests {
1206
1203
. with_rtc ( 0x40001000 , 0x1000 )
1207
1204
. create_fdt ( )
1208
1205
. unwrap ( ) ;
1209
- assert ! ( fdt. write_to_mem( vmm. guest_memory. as_ref( ) , fdt_offset) . is_err( ) ) ;
1206
+ assert ! ( fdt
1207
+ . write_to_mem( vmm. guest_memory. as_ref( ) , fdt_offset)
1208
+ . is_err( ) ) ;
1210
1209
}
1211
1210
}
1212
1211
#[ test]
You can’t perform that action at this time.
0 commit comments