Skip to content

Commit 8c6294a

Browse files
committed
Fix compiler warnings
1 parent 7587638 commit 8c6294a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ An experimental x86_64 bootloader that works on both BIOS and UEFI systems.
77
use anyhow::Context;
88
use std::{
99
collections::BTreeMap,
10-
ops::Deref,
11-
path::{self, Path, PathBuf},
10+
path::{Path, PathBuf},
1211
};
1312
use tempfile::NamedTempFile;
1413

@@ -37,6 +36,7 @@ impl BiosBoot {
3736
}
3837
}
3938

39+
/// Add a ramdisk file to the image
4040
pub fn with_ramdisk(&self, ramdisk_path: &Path) -> Self {
4141
Self {
4242
kernel: self.kernel.to_owned(),
@@ -107,6 +107,7 @@ impl UefiBoot {
107107
}
108108
}
109109

110+
/// Add a ramdisk file to the disk image
110111
pub fn with_ramdisk(&self, ramdisk_path: &Path) -> Self {
111112
Self {
112113
kernel: self.kernel.clone(),

0 commit comments

Comments
 (0)