We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4284a7 commit 72080feCopy full SHA for 72080fe
rust/kernel/error.rs
@@ -73,7 +73,7 @@ pub struct Error(core::ffi::c_int);
73
74
impl Error {
75
/// Returns the kernel error code.
76
- pub fn to_kernel_errno(self) -> core::ffi::c_int {
+ pub fn to_errno(self) -> core::ffi::c_int {
77
self.0
78
}
79
rust/macros/module.rs
@@ -278,7 +278,7 @@ pub(crate) fn module(ts: TokenStream) -> TokenStream {
278
return 0;
279
}}
280
Err(e) => {{
281
- return e.to_kernel_errno();
+ return e.to_errno();
282
283
284
0 commit comments