Skip to content

Commit

Permalink
Merge pull request Rust-for-Linux#319 from Rust-for-Linux/alex-patch-1
Browse files Browse the repository at this point in the history
follow conventions for to_* methods
  • Loading branch information
ojeda authored May 29, 2021
2 parents 51a2b6c + 1469808 commit b24c08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Error {
}

/// Returns the kernel error code.
pub fn to_kernel_errno(&self) -> c_types::c_int {
pub fn to_kernel_errno(self) -> c_types::c_int {
self.0
}
}
Expand Down

0 comments on commit b24c08c

Please sign in to comment.