Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion uefi/src/data_types/guid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub unsafe trait Identify {
#[cfg(test)]
mod tests {
use super::*;
use uefi::guid;
use crate::guid;

#[test]
fn test_guid_display() {
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/fs/dir_entry_iter.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Module for directory iteration. See [`UefiDirectoryIter`].

use super::*;
use crate::Result;
use alloc::boxed::Box;
use uefi::Result;

/// Iterates over the entries of an UEFI directory. It returns boxed values of
/// type [`UefiFileInfo`].
Expand Down
4 changes: 2 additions & 2 deletions uefi/src/fs/file_system.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Module for [`FileSystem`].

use super::*;
use crate::proto::media::file::{FileAttribute, FileInfo, FileType};
use crate::table::boot::ScopedProtocol;
use alloc::boxed::Box;
use alloc::string::{FromUtf8Error, String, ToString};
use alloc::vec::Vec;
Expand All @@ -10,8 +12,6 @@ use core::fmt::{Debug, Formatter};
use core::ops::Deref;
use derive_more::Display;
use log::info;
use uefi::proto::media::file::{FileAttribute, FileInfo, FileType};
use uefi::table::boot::ScopedProtocol;

/// All errors that can happen when working with the [`FileSystem`].
#[derive(Debug, Clone, Display, PartialEq, Eq)]
Expand Down
4 changes: 2 additions & 2 deletions uefi/src/fs/normalized_path.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Module for path normalization. See [`NormalizedPath`].

use super::*;
use crate::data_types::FromStrError;
use crate::CString16;
use alloc::format;
use alloc::string::{String, ToString};
use alloc::vec::Vec;
use core::ops::Deref;
use derive_more::Display;
use uefi::data_types::FromStrError;
use uefi::CString16;

/// The default separator for paths.
pub const SEPARATOR: char = '\\';
Expand Down
4 changes: 2 additions & 2 deletions uefi/src/fs/uefi_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! to differ between high-level and low-level types and interfaces in this
//! module.

pub use uefi::proto::media::file::{
pub use crate::proto::media::file::{
Directory as UefiDirectoryHandle, File as UefiFileTrait, FileAttribute as UefiFileAttribute,
FileHandle as UefiFileHandle, FileInfo as UefiFileInfo, FileMode as UefiFileMode,
FileType as UefiFileType, RegularFile as UefiRegularFileHandle,
};
pub use uefi::proto::media::fs::SimpleFileSystem as SimpleFileSystemProtocol;
pub use crate::proto::media::fs::SimpleFileSystem as SimpleFileSystemProtocol;
5 changes: 2 additions & 3 deletions uefi/src/mem.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
//! This is a utility module with helper methods for allocations/memory.

use crate::{Result, ResultExt, Status};
use crate::data_types::Align;
use crate::{Error, Result, ResultExt, Status};
use ::alloc::boxed::Box;
use core::alloc::Layout;
use core::fmt::Debug;
use core::slice;
use uefi::data_types::Align;
use uefi::Error;

#[cfg(not(feature = "unstable"))]
use ::alloc::alloc::{alloc, dealloc};
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/device_path/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! [`DevicePaths`]: DevicePath

pub use uefi::proto::device_path::device_path_gen::build::*;
pub use crate::proto::device_path::device_path_gen::build::*;

use crate::polyfill::{maybe_uninit_slice_as_mut_ptr, maybe_uninit_slice_assume_init_ref};
use crate::proto::device_path::{DevicePath, DevicePathNode};
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/string/unicode_collation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//! This protocol is used in the boot services environment to perform
//! lexical comparison functions on Unicode strings for given languages.

use crate::data_types::{CStr16, CStr8, Char16, Char8};
use crate::proto::unsafe_protocol;
use core::cmp::Ordering;
use uefi::data_types::{CStr16, CStr8, Char16, Char8};

/// The Unicode Collation Protocol.
///
Expand Down