Skip to content

Commit 40a271a

Browse files
committed
rust: error: Derive Error as Debug
So that `Result::expect` can be used. Signed-off-by: Boqun Feng <[email protected]>
1 parent fc2b177 commit 40a271a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/kernel/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use core::{num::TryFromIntError, str::Utf8Error};
1212
///
1313
/// The kernel defines a set of integer generic error codes based on C and
1414
/// POSIX ones. These codes may have a more specific meaning in some contexts.
15+
#[derive(Debug)]
1516
pub struct Error(c_types::c_int);
1617

1718
impl Error {

0 commit comments

Comments
 (0)