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;
54
54
use std:: fs:: File ;
55
55
use std:: io;
56
56
use std:: io:: prelude:: * ;
57
- #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
57
+ #[ cfg( any( target_os = "linux" , target_os = "android" , feature = "use_tokio" ) ) ]
58
58
use std:: io:: SeekFrom ;
59
59
use std:: os:: unix:: prelude:: * ;
60
60
use std:: path:: Path ;
@@ -123,7 +123,7 @@ fn flush_input_from_file(dev_file: &mut File, max: usize) -> io::Result<usize> {
123
123
}
124
124
125
125
/// 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" ) ) ]
127
127
fn get_value_from_file ( dev_file : & mut File ) -> Result < u8 > {
128
128
let mut s = String :: with_capacity ( 10 ) ;
129
129
dev_file. seek ( SeekFrom :: Start ( 0 ) ) ?;
You can’t perform that action at this time.
0 commit comments