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 1
1
use crate :: file_data_source:: FileDataSource ;
2
2
use anyhow:: Context ;
3
- use fatfs:: { Dir } ;
3
+ use fatfs:: Dir ;
4
4
use std:: fs:: File ;
5
5
use std:: { collections:: BTreeMap , fs, path:: Path } ;
6
6
Original file line number Diff line number Diff line change @@ -24,12 +24,7 @@ pub use bios::BiosBoot;
24
24
mod fat;
25
25
mod file_data_source;
26
26
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 } ;
33
28
34
29
use anyhow:: Context ;
35
30
@@ -84,7 +79,7 @@ impl DiskImageBuilder {
84
79
let bytes = json. as_bytes ( ) ;
85
80
self . set_file_source ( CONFIG_FILE_NAME , FileDataSource :: Data ( bytes. to_vec ( ) ) )
86
81
}
87
-
82
+
88
83
/// Add a file source to the disk image
89
84
pub fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
90
85
let destination = destination. to_string ( ) ;
You can’t perform that action at this time.
0 commit comments