Skip to content

Commit 1469808

Browse files
committed
rust: follow conventions for to_* methods
`Error` is `Copy`, so no changes are required to callers Signed-off-by: Alex Gaynor <[email protected]>
1 parent 51a2b6c commit 1469808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl Error {
6262
}
6363

6464
/// Returns the kernel error code.
65-
pub fn to_kernel_errno(&self) -> c_types::c_int {
65+
pub fn to_kernel_errno(self) -> c_types::c_int {
6666
self.0
6767
}
6868
}

0 commit comments

Comments
 (0)