Skip to content

Commit 5cabc0c

Browse files
committed
Make set_file_source private
We don't want to expose the `FileDataSource` enum for now.
1 parent 6b8d970 commit 5cabc0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)