Skip to content

Commit 15aaf9f

Browse files
committed
Clean up structure after refactoring
1 parent a03e4b2 commit 15aaf9f

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

src/bios/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ An experimental x86_64 bootloader that works on both BIOS and UEFI systems.
55
#![warn(missing_docs)]
66

77
#[cfg(feature = "bios")]
8-
mod bios;
8+
mod mbr;
99
#[cfg(feature = "uefi")]
10-
mod uefi;
10+
mod gpt;
1111

1212
mod fat;
1313

@@ -99,7 +99,7 @@ impl<'a> DiskImageBuilder<'a> {
9999
let fat_partition = self
100100
.create_fat_filesystem_image(internal_files)
101101
.context("failed to create FAT partition")?;
102-
bios::mbr::create_mbr_disk(
102+
mbr::create_mbr_disk(
103103
bootsector_path,
104104
stage_2_path,
105105
fat_partition.path(),
@@ -123,7 +123,7 @@ impl<'a> DiskImageBuilder<'a> {
123123
let fat_partition = self
124124
.create_fat_filesystem_image(internal_files)
125125
.context("failed to create FAT partition")?;
126-
uefi::gpt::create_gpt_disk(fat_partition.path(), image_filename)
126+
gpt::create_gpt_disk(fat_partition.path(), image_filename)
127127
.context("failed to create UEFI GPT disk image")?;
128128
fat_partition
129129
.close()
File renamed without changes.

src/uefi/mod.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/runner/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{
22
io::Write,
3-
path::{Path, PathBuf},
3+
path::Path,
44
process::Command,
55
};
66

0 commit comments

Comments
 (0)