Skip to content

Commit

Permalink
Merge pull request #337 from hermit-os/uefi-dead_code
Browse files Browse the repository at this point in the history
fix(uefi): dead_code
  • Loading branch information
mkroening authored May 5, 2024
2 parents 8efb4f0 + 40e170c commit f78c97d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#![allow(unstable_name_collisions)]
#![allow(clippy::missing_safety_doc)]

#[cfg(not(target_os = "uefi"))]
use ::log::info;
#[cfg(not(target_os = "uefi"))]
use hermit_entry::boot_info::{BootInfo, RawBootInfo};

#[macro_use]
Expand All @@ -21,10 +23,12 @@ mod os;
))]
extern crate alloc;

#[cfg(not(target_os = "uefi"))]
trait BootInfoExt {
fn write(self) -> &'static RawBootInfo;
}

#[cfg(not(target_os = "uefi"))]
impl BootInfoExt for BootInfo {
fn write(self) -> &'static RawBootInfo {
info!("boot_info = {self:#x?}");
Expand Down

0 comments on commit f78c97d

Please sign in to comment.