Skip to content

Commit

Permalink
Merge pull request Rust-for-Linux#267 from fbq/dev/rust-err
Browse files Browse the repository at this point in the history
Improvement to Error
  • Loading branch information
ojeda authored May 21, 2021
2 parents ffdacf7 + 40a271a commit 45d79fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/kernel/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use core::{num::TryFromIntError, str::Utf8Error};
///
/// The kernel defines a set of integer generic error codes based on C and
/// POSIX ones. These codes may have a more specific meaning in some contexts.
#[derive(Debug)]
pub struct Error(c_types::c_int);

impl Error {
Expand Down

0 comments on commit 45d79fc

Please sign in to comment.