Skip to content

Commit 8ec7623

Browse files
authored
follow conventions for to_* methods
`Error` is `Copy`, so no changes are required to callers
1 parent 51a2b6c commit 8ec7623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
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)