File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub fn read_secure() -> io::Result<String> {
39
39
) )
40
40
}
41
41
42
- pub fn read_single_key ( ) -> io:: Result < Key > {
42
+ pub fn read_single_key ( _ctrlc_key : bool ) -> io:: Result < Key > {
43
43
Err ( io:: Error :: new (
44
44
io:: ErrorKind :: Other ,
45
45
"unsupported operation" ,
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ pub fn key_from_key_code(code: VIRTUAL_KEY) -> Key {
357
357
pub fn read_secure ( ) -> io:: Result < String > {
358
358
let mut rv = String :: new ( ) ;
359
359
loop {
360
- match read_single_key ( ) ? {
360
+ match read_single_key ( false ) ? {
361
361
Key :: Enter => {
362
362
break ;
363
363
}
@@ -376,7 +376,7 @@ pub fn read_secure() -> io::Result<String> {
376
376
Ok ( rv)
377
377
}
378
378
379
- pub fn read_single_key ( ) -> io:: Result < Key > {
379
+ pub fn read_single_key ( _ctrlc_key : bool ) -> io:: Result < Key > {
380
380
let key_event = read_key_event ( ) ?;
381
381
382
382
let unicode_char = unsafe { key_event. uChar . UnicodeChar } ;
You can’t perform that action at this time.
0 commit comments