File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ use std::fs;
5454use std:: fs:: File ;
5555use std:: io;
5656use std:: io:: prelude:: * ;
57- #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
57+ #[ cfg( any( target_os = "linux" , target_os = "android" , feature = "use_tokio" ) ) ]
5858use std:: io:: SeekFrom ;
5959use std:: os:: unix:: prelude:: * ;
6060use std:: path:: Path ;
@@ -123,7 +123,7 @@ fn flush_input_from_file(dev_file: &mut File, max: usize) -> io::Result<usize> {
123123}
124124
125125/// Get the pin value from the provided file
126- #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
126+ #[ cfg( any( target_os = "linux" , target_os = "android" , feature = "use_tokio" ) ) ]
127127fn get_value_from_file ( dev_file : & mut File ) -> Result < u8 > {
128128 let mut s = String :: with_capacity ( 10 ) ;
129129 dev_file. seek ( SeekFrom :: Start ( 0 ) ) ?;
You can’t perform that action at this time.
0 commit comments