Skip to content

Commit b24c08c

Browse files
authored
Merge pull request #319 from Rust-for-Linux/alex-patch-1
follow conventions for to_* methods
2 parents 51a2b6c + 1469808 commit b24c08c

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)