Skip to content

Commit 826e559

Browse files
uefi: Clean up unnecessary uses of self::
1 parent 063af74 commit 826e559

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

uefi/src/data_types/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,23 @@ pub trait Align {
138138
}
139139

140140
mod guid;
141-
pub use self::guid::{Guid, Identify};
141+
pub use guid::{Guid, Identify};
142142

143143
pub mod chars;
144-
pub use self::chars::{Char16, Char8};
144+
pub use chars::{Char16, Char8};
145145

146146
#[macro_use]
147147
mod opaque;
148148

149149
mod strs;
150-
pub use self::strs::{
150+
pub use strs::{
151151
CStr16, CStr8, EqStrUntilNul, FromSliceWithNulError, FromStrWithBufError, UnalignedCStr16Error,
152152
};
153153

154154
#[cfg(feature = "alloc")]
155155
mod owned_strs;
156156
#[cfg(feature = "alloc")]
157-
pub use self::owned_strs::{CString16, FromStrError};
157+
pub use owned_strs::{CString16, FromStrError};
158158

159159
mod unaligned_slice;
160160
pub use unaligned_slice::UnalignedSlice;

uefi/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ extern crate uefi_raw;
106106
#[macro_use]
107107
pub mod data_types;
108108
#[cfg(feature = "alloc")]
109-
pub use self::data_types::CString16;
110-
pub use self::data_types::{CStr16, CStr8, Char16, Char8, Event, Guid, Handle, Identify};
109+
pub use data_types::CString16;
110+
pub use data_types::{CStr16, CStr8, Char16, Char8, Event, Guid, Handle, Identify};
111111
pub use uefi_macros::{cstr16, cstr8, entry};
112112
pub use uguid::guid;
113113

114114
mod result;
115-
pub use self::result::{Error, Result, ResultExt, Status, StatusExt};
115+
pub use result::{Error, Result, ResultExt, Status, StatusExt};
116116

117117
pub mod table;
118118

uefi/src/proto/console/text/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Text I/O.
22
33
mod input;
4-
pub use self::input::{Input, Key, ScanCode};
4+
pub use input::{Input, Key, ScanCode};
55

66
mod output;
7-
pub use self::output::{Color, Output, OutputMode};
7+
pub use output::{Color, Output, OutputMode};

uefi/src/proto/debug/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use crate::proto::unsafe_protocol;
1515
use crate::{Result, Status, StatusExt};
1616

1717
// re-export for ease of use
18-
pub use self::context::SystemContext;
19-
pub use self::exception::ExceptionType;
18+
pub use context::SystemContext;
19+
pub use exception::ExceptionType;
2020

2121
mod context;
2222
mod exception;

uefi/src/proto/media/file/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ use {alloc::alloc::Global, core::alloc::Allocator};
2222
#[cfg(feature = "alloc")]
2323
use {crate::mem::make_boxed, alloc::boxed::Box};
2424

25-
pub use self::dir::Directory;
26-
pub use self::info::{
25+
pub use dir::Directory;
26+
pub use info::{
2727
FileInfo, FileInfoCreationError, FileProtocolInfo, FileSystemInfo, FileSystemVolumeLabel,
2828
FromUefi,
2929
};
30-
pub use self::regular::RegularFile;
30+
pub use regular::RegularFile;
3131
pub use uefi_raw::protocol::file_system::FileAttribute;
3232

3333
/// Common interface to `FileHandle`, `RegularFile`, and `Directory`.

uefi/src/result/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use core::fmt::Debug;
44

55
/// The error type that we use, essentially a status code + optional additional data
66
mod error;
7-
pub use self::error::Error;
7+
pub use error::Error;
88

99
/// Definition of UEFI's standard status codes
1010
mod status;
11-
pub use self::status::{Status, StatusExt};
11+
pub use status::{Status, StatusExt};
1212

1313
/// Return type of most UEFI functions. Both success and error payloads are optional.
1414
///

uefi/src/table/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ pub trait Table {
88
}
99

1010
mod header;
11-
pub use self::header::Header;
11+
pub use header::Header;
1212

1313
mod system;
14-
pub use self::system::{Boot, Runtime, SystemTable};
14+
pub use system::{Boot, Runtime, SystemTable};
1515

1616
pub mod boot;
1717
pub mod runtime;

0 commit comments

Comments
 (0)