@@ -86,11 +86,6 @@ impl DiskImageBuilder {
86
86
}
87
87
88
88
/// Add a file source to the disk image
89
- /// Example:
90
- /// ```
91
- /// image_builder.set_file_source("/extra/README.md", FileDataSource::File(file_path.to_path_buf()))
92
- /// .set_file_source("/config/config.json", FileDataSource::Data(serialzed_configuration.to_vec()));
93
- /// ```
94
89
pub fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
95
90
let destination = destination. to_string ( ) ;
96
91
self . files . insert (
@@ -105,18 +100,12 @@ impl DiskImageBuilder {
105
100
106
101
/// Add a file with the specified bytes to the disk image
107
102
/// NOTE: This is just a convenience wrapper around set_file_source
108
- /// ```
109
- /// image_builder.set_file_source(destination, FileDataSource::Data(data.to_vec()))
110
- /// ```
111
103
pub fn set_file_contents ( & mut self , destination : & str , data : & [ u8 ] ) -> & mut Self {
112
104
self . set_file_source ( destination, FileDataSource :: Data ( data. to_vec ( ) ) )
113
105
}
114
106
115
107
/// Add a file with the specified source file to the disk image
116
108
/// NOTE: This is just a convenience wrapper around set_file_source
117
- /// ```
118
- /// image_builder.set_file_source(destination, FileDataSource::File(file_path.to_path_buf()))
119
- /// ```
120
109
pub fn set_file ( & mut self , destination : & str , file_path : & Path ) -> & mut Self {
121
110
self . set_file_source ( destination, FileDataSource :: File ( file_path. to_path_buf ( ) ) )
122
111
}
0 commit comments