Skip to content

Commit

Permalink
Rename EFI struct for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bgilbert committed Jul 28, 2021
1 parent c8bf3ef commit 777adf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bootupd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down
2 changes: 1 addition & 1 deletion src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub(crate) trait Component {
/// Given a component name, create an implementation.
pub(crate) fn new_from_name(name: &str) -> Result<Box<dyn Component>> {
let r: Box<dyn Component> = match name {
"EFI" => Box::new(crate::efi::EFI::default()),
"EFI" => Box::new(crate::efi::Efi::default()),
_ => anyhow::bail!("No component {}", name),
};
Ok(r)
Expand Down
6 changes: 3 additions & 3 deletions src/efi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -83,7 +83,7 @@ impl EFI {
}
}

impl Component for EFI {
impl Component for Efi {
fn name(&self) -> &'static str {
"EFI"
}
Expand Down

0 comments on commit 777adf1

Please sign in to comment.