File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 11use crate :: file_data_source:: FileDataSource ;
22use anyhow:: Context ;
3- use fatfs:: { Dir } ;
3+ use fatfs:: Dir ;
44use std:: fs:: File ;
55use std:: { collections:: BTreeMap , fs, path:: Path } ;
66
Original file line number Diff line number Diff line change @@ -24,12 +24,7 @@ pub use bios::BiosBoot;
2424mod fat;
2525mod file_data_source;
2626
27- use std:: {
28- collections:: BTreeMap ,
29- fs,
30- io:: Write ,
31- path:: { Path } ,
32- } ;
27+ use std:: { collections:: BTreeMap , fs, io:: Write , path:: Path } ;
3328
3429use anyhow:: Context ;
3530
@@ -84,7 +79,7 @@ impl DiskImageBuilder {
8479 let bytes = json. as_bytes ( ) ;
8580 self . set_file_source ( CONFIG_FILE_NAME , FileDataSource :: Data ( bytes. to_vec ( ) ) )
8681 }
87-
82+
8883 /// Add a file source to the disk image
8984 pub fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
9085 let destination = destination. to_string ( ) ;
You can’t perform that action at this time.
0 commit comments