Skip to content

Commit

Permalink
rust: follow conventions for to_* methods
Browse files Browse the repository at this point in the history
`Error` is `Copy`, so no changes are required to callers

Signed-off-by: Alex Gaynor <[email protected]>
  • Loading branch information
alex committed May 29, 2021
1 parent 51a2b6c commit 1469808
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 1469808

Please sign in to comment.