Skip to content

Commit

Permalink
uefi: Clean up imports of uefi::table::runtime
Browse files Browse the repository at this point in the history
Use `uefi::runtime` instead.
  • Loading branch information
nicholasbishop committed Aug 30, 2024
1 parent e7b3118 commit 3cd79c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion uefi/src/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
//!
//! [`proto`]: crate::proto

pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl, PAGE_SIZE};
pub use uefi_raw::table::boot::{
EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl, PAGE_SIZE,
};

use crate::data_types::PhysicalAddress;
use crate::mem::memory_map::{MemoryMapBackingMemory, MemoryMapKey, MemoryMapMeta, MemoryMapOwned};
Expand Down
4 changes: 2 additions & 2 deletions uefi/src/proto/media/file/info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::FileAttribute;
use crate::data_types::Align;
use crate::table::runtime::Time;
use crate::runtime::Time;
use crate::{CStr16, Char16, Guid, Identify};
use core::ffi::c_void;
use core::fmt::{self, Display, Formatter};
Expand Down Expand Up @@ -426,7 +426,7 @@ impl FileProtocolInfo for FileSystemVolumeLabel {}
#[cfg(test)]
mod tests {
use super::*;
use crate::table::runtime::{Daylight, Time, TimeParams};
use crate::runtime::{Daylight, Time, TimeParams};
use crate::CString16;
use alloc::vec;

Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/media/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub enum FileMode {
#[cfg(test)]
mod tests {
use super::*;
use crate::table::runtime::Time;
use crate::runtime::Time;
use crate::{CString16, Guid, Identify};
use ::alloc::vec;
use uefi_raw::protocol::file_system::FileProtocolRevision;
Expand Down

0 comments on commit 3cd79c1

Please sign in to comment.