Skip to content

Commit d48d8f4

Browse files
committed
cargo fmt
1 parent b793fad commit d48d8f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/bios/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const BIOS_STAGE_4: &str = "boot-stage-4";
77

88
/// Create disk images for booting on legacy BIOS systems.
99
pub struct BiosBoot {
10-
image_builder: DiskImageBuilder
10+
image_builder: DiskImageBuilder,
1111
}
1212

1313
impl BiosBoot {
1414
/// Start creating a disk image for the given bootloader ELF executable.
1515
pub fn new(kernel_path: &Path) -> Self {
1616
Self {
17-
image_builder: DiskImageBuilder::new(kernel_path)
17+
image_builder: DiskImageBuilder::new(kernel_path),
1818
}
1919
}
2020

@@ -28,4 +28,4 @@ impl BiosBoot {
2828
pub fn create_disk_image(&self, out_path: &Path) -> anyhow::Result<()> {
2929
self.image_builder.create_bios_image(out_path)
3030
}
31-
}
31+
}

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ An experimental x86_64 bootloader that works on both BIOS and UEFI systems.
44

55
#![warn(missing_docs)]
66

7+
#[cfg(feature = "bios")]
8+
mod bios;
79
#[cfg(feature = "uefi")]
810
mod gpt;
911
#[cfg(feature = "bios")]
1012
mod mbr;
11-
#[cfg(feature = "bios")]
12-
mod bios;
1313
#[cfg(feature = "uefi")]
1414
mod uefi;
1515

src/uefi/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const BIOS_STAGE_4: &str = "boot-stage-4";
77

88
/// Create disk images for booting on legacy BIOS systems.
99
pub struct UefiBoot {
10-
image_builder: DiskImageBuilder
10+
image_builder: DiskImageBuilder,
1111
}
1212

1313
impl UefiBoot {
1414
/// Start creating a disk image for the given bootloader ELF executable.
1515
pub fn new(kernel_path: &Path) -> Self {
1616
Self {
17-
image_builder: DiskImageBuilder::new(kernel_path)
17+
image_builder: DiskImageBuilder::new(kernel_path),
1818
}
1919
}
2020

@@ -28,7 +28,7 @@ impl UefiBoot {
2828
pub fn create_disk_image(&self, out_path: &Path) -> anyhow::Result<()> {
2929
self.image_builder.create_uefi_image(out_path)
3030
}
31-
31+
3232
/// Prepare a folder for use with booting over UEFI_PXE.
3333
///
3434
/// This places the bootloader executable under the path "bootloader". The
@@ -37,4 +37,4 @@ impl UefiBoot {
3737
pub fn create_pxe_tftp_folder(&self, out_path: &Path) -> anyhow::Result<()> {
3838
self.image_builder.create_uefi_tftp_folder(out_path)
3939
}
40-
}
40+
}

0 commit comments

Comments
 (0)