This repository was archived by the owner on Mar 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ mod allocator;
99pub mod bindings;
1010mod c_types;
1111pub mod chrdev;
12- pub mod error;
12+ mod error;
1313pub mod filesystem;
1414pub mod printk;
1515pub mod sysctl;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ use core::sync::atomic::{AtomicBool, Ordering};
88use serde:: Serialize ;
99use serde_json_core;
1010
11- use linux_kernel_module:: error;
1211use linux_kernel_module:: sysctl:: Sysctl ;
1312use linux_kernel_module:: Mode ;
1413
@@ -37,8 +36,8 @@ impl linux_kernel_module::chrdev::FileOperations for JsonChrdev {
3736 c : C . load ( Ordering :: Relaxed ) ,
3837 } ;
3938 let mut s =
40- serde_json_core:: to_vec :: < typenum:: U32 , _ > ( & o) . map_err ( |_| error :: Error :: ENOMEM ) ?;
41- s. push ( b'\n' ) . map_err ( |_| error :: Error :: ENOMEM ) ?;
39+ serde_json_core:: to_vec :: < typenum:: U32 , _ > ( & o) . map_err ( |_| linux_kernel_module :: Error :: ENOMEM ) ?;
40+ s. push ( b'\n' ) . map_err ( |_| linux_kernel_module :: Error :: ENOMEM ) ?;
4241 let start = min ( offset. try_into ( ) ?, s. len ( ) ) ;
4342 let end = min ( start + buf. len ( ) , s. len ( ) ) ;
4443 buf. write ( & s[ start..end] ) ?;
You can’t perform that action at this time.
0 commit comments