diff --git a/src/bootupd.rs b/src/bootupd.rs index 24cca7df..17e1429e 100644 --- a/src/bootupd.rs +++ b/src/bootupd.rs @@ -61,7 +61,7 @@ pub(crate) fn get_components() -> Components { } #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] - insert_component(&mut components, Box::new(efi::EFI::default())); + insert_component(&mut components, Box::new(efi::Efi::default())); // #[cfg(target_arch = "x86_64")] // components.push(Box::new(bios::BIOS::new())); diff --git a/src/component.rs b/src/component.rs index 9fd8b0d4..a0787838 100644 --- a/src/component.rs +++ b/src/component.rs @@ -70,7 +70,7 @@ pub(crate) trait Component { /// Given a component name, create an implementation. pub(crate) fn new_from_name(name: &str) -> Result> { let r: Box = match name { - "EFI" => Box::new(crate::efi::EFI::default()), + "EFI" => Box::new(crate::efi::Efi::default()), _ => anyhow::bail!("No component {}", name), }; Ok(r) diff --git a/src/efi.rs b/src/efi.rs index c37509c8..51dc14ba 100644 --- a/src/efi.rs +++ b/src/efi.rs @@ -36,9 +36,9 @@ lazy_static! { } #[derive(Default)] -pub(crate) struct EFI {} +pub(crate) struct Efi {} -impl EFI { +impl Efi { fn esp_path(&self) -> PathBuf { Path::new(&*MOUNT_PATH).join("EFI") } @@ -83,7 +83,7 @@ impl EFI { } } -impl Component for EFI { +impl Component for Efi { fn name(&self) -> &'static str { "EFI" }