Skip to content

Commit df1e08b

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 58ab534 commit df1e08b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use crate::c_types;
1616
///
1717
/// The kernel defines a set of integer generic error codes based on C and
1818
/// POSIX ones. These codes may have a more specific meaning in some contexts.
19+
#[derive(Debug)]
1920
pub struct Error(c_types::c_int);
2021

2122
impl Error {

0 commit comments

Comments
 (0)