File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -78,20 +78,18 @@ impl DiskImageBuilder {
78
78
}
79
79
80
80
/// Add a file source to the disk image
81
- pub fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
81
+ fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
82
82
let destination = destination. to_string ( ) ;
83
83
self . files . insert ( destination, source) ;
84
84
self
85
85
}
86
86
87
87
/// Add a file with the specified bytes to the disk image
88
- /// NOTE: This is just a convenience wrapper around set_file_source
89
88
pub fn set_file_contents ( & mut self , destination : & str , data : & [ u8 ] ) -> & mut Self {
90
89
self . set_file_source ( destination, FileDataSource :: Data ( data. to_vec ( ) ) )
91
90
}
92
91
93
92
/// Add a file with the specified source file to the disk image
94
- /// NOTE: This is just a convenience wrapper around set_file_source
95
93
pub fn set_file ( & mut self , destination : & str , file_path : & Path ) -> & mut Self {
96
94
self . set_file_source ( destination, FileDataSource :: File ( file_path. to_path_buf ( ) ) )
97
95
}
You can’t perform that action at this time.
0 commit comments