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 {
7878 }
7979
8080 /// 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 {
8282 let destination = destination. to_string ( ) ;
8383 self . files . insert ( destination, source) ;
8484 self
8585 }
8686
8787 /// Add a file with the specified bytes to the disk image
88- /// NOTE: This is just a convenience wrapper around set_file_source
8988 pub fn set_file_contents ( & mut self , destination : & str , data : & [ u8 ] ) -> & mut Self {
9089 self . set_file_source ( destination, FileDataSource :: Data ( data. to_vec ( ) ) )
9190 }
9291
9392 /// Add a file with the specified source file to the disk image
94- /// NOTE: This is just a convenience wrapper around set_file_source
9593 pub fn set_file ( & mut self , destination : & str , file_path : & Path ) -> & mut Self {
9694 self . set_file_source ( destination, FileDataSource :: File ( file_path. to_path_buf ( ) ) )
9795 }
You can’t perform that action at this time.
0 commit comments