Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d48d8f4

Browse filesBrowse files
committed
cargo fmt
1 parent b793fad commit d48d8f4
Copy full SHA for d48d8f4

File tree

Expand file treeCollapse file tree

3 files changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-9
lines changed

‎src/bios/mod.rs

Copy file name to clipboardExpand all lines: src/bios/mod.rs
+3-3Lines changed: 3 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: src/lib.rs
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: src/uefi/mod.rs
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.