Skip to content

Commit 739bd8e

Browse files
phip1611nicholasbishop
authored andcommitted
uefi: consistent use of crate:: over uefi::
1 parent e74a02f commit 739bd8e

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

uefi/src/data_types/guid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub unsafe trait Identify {
136136
#[cfg(test)]
137137
mod tests {
138138
use super::*;
139-
use uefi::guid;
139+
use crate::guid;
140140

141141
#[test]
142142
fn test_guid_display() {

uefi/src/fs/dir_entry_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Module for directory iteration. See [`UefiDirectoryIter`].
22
33
use super::*;
4+
use crate::Result;
45
use alloc::boxed::Box;
5-
use uefi::Result;
66

77
/// Iterates over the entries of an UEFI directory. It returns boxed values of
88
/// type [`UefiFileInfo`].

uefi/src/fs/file_system.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Module for [`FileSystem`].
22
33
use super::*;
4+
use crate::proto::media::file::{FileAttribute, FileInfo, FileType};
5+
use crate::table::boot::ScopedProtocol;
46
use alloc::boxed::Box;
57
use alloc::string::{FromUtf8Error, String, ToString};
68
use alloc::vec::Vec;
@@ -10,8 +12,6 @@ use core::fmt::{Debug, Formatter};
1012
use core::ops::Deref;
1113
use derive_more::Display;
1214
use log::info;
13-
use uefi::proto::media::file::{FileAttribute, FileInfo, FileType};
14-
use uefi::table::boot::ScopedProtocol;
1515

1616
/// All errors that can happen when working with the [`FileSystem`].
1717
#[derive(Debug, Clone, Display, PartialEq, Eq)]

uefi/src/fs/normalized_path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Module for path normalization. See [`NormalizedPath`].
22
33
use super::*;
4+
use crate::data_types::FromStrError;
5+
use crate::CString16;
46
use alloc::format;
57
use alloc::string::{String, ToString};
68
use alloc::vec::Vec;
79
use core::ops::Deref;
810
use derive_more::Display;
9-
use uefi::data_types::FromStrError;
10-
use uefi::CString16;
1111

1212
/// The default separator for paths.
1313
pub const SEPARATOR: char = '\\';

uefi/src/fs/uefi_types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//! to differ between high-level and low-level types and interfaces in this
33
//! module.
44
5-
pub use uefi::proto::media::file::{
5+
pub use crate::proto::media::file::{
66
Directory as UefiDirectoryHandle, File as UefiFileTrait, FileAttribute as UefiFileAttribute,
77
FileHandle as UefiFileHandle, FileInfo as UefiFileInfo, FileMode as UefiFileMode,
88
FileType as UefiFileType, RegularFile as UefiRegularFileHandle,
99
};
10-
pub use uefi::proto::media::fs::SimpleFileSystem as SimpleFileSystemProtocol;
10+
pub use crate::proto::media::fs::SimpleFileSystem as SimpleFileSystemProtocol;

uefi/src/mem.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
//! This is a utility module with helper methods for allocations/memory.
22
3-
use crate::{Result, ResultExt, Status};
3+
use crate::data_types::Align;
4+
use crate::{Error, Result, ResultExt, Status};
45
use ::alloc::boxed::Box;
56
use core::alloc::Layout;
67
use core::fmt::Debug;
78
use core::slice;
8-
use uefi::data_types::Align;
9-
use uefi::Error;
109

1110
#[cfg(not(feature = "unstable"))]
1211
use ::alloc::alloc::{alloc, dealloc};

uefi/src/proto/device_path/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//!
66
//! [`DevicePaths`]: DevicePath
77
8-
pub use uefi::proto::device_path::device_path_gen::build::*;
8+
pub use crate::proto::device_path::device_path_gen::build::*;
99

1010
use crate::polyfill::{maybe_uninit_slice_as_mut_ptr, maybe_uninit_slice_assume_init_ref};
1111
use crate::proto::device_path::{DevicePath, DevicePathNode};

uefi/src/proto/string/unicode_collation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//! This protocol is used in the boot services environment to perform
44
//! lexical comparison functions on Unicode strings for given languages.
55
6+
use crate::data_types::{CStr16, CStr8, Char16, Char8};
67
use crate::proto::unsafe_protocol;
78
use core::cmp::Ordering;
8-
use uefi::data_types::{CStr16, CStr8, Char16, Char8};
99

1010
/// The Unicode Collation Protocol.
1111
///

0 commit comments

Comments
 (0)