Skip to content

Commit a47f130

Browse files
committed
rust: kernel: get error::* items from the module
This is part of the effort to minimize the differences of the `rust` branch with respect to mainline in order to eventually drop it. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 6af9ba5 commit a47f130

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rust/kernel/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ pub use super::module_amba_driver;
3737

3838
pub use super::static_assert;
3939

40-
pub use super::{error::code::*, Error, Result};
40+
pub use super::error::{code::*, Error, Result};
4141

4242
pub use super::{str::CStr, ARef, ThisModule};

rust/kernel/str.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ use alloc::vec::Vec;
66
use core::fmt::{self, Write};
77
use core::ops::{self, Deref, Index};
88

9-
use crate::{bindings, error::code::*, Error};
9+
use crate::{
10+
bindings,
11+
error::{code::*, Error},
12+
};
1013

1114
/// Byte string without UTF-8 validity guarantee.
1215
///

0 commit comments

Comments
 (0)