diff options
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r-- | runtime/permissions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs index d4e1ec4f6..c404436d6 100644 --- a/runtime/permissions.rs +++ b/runtime/permissions.rs @@ -1918,7 +1918,7 @@ fn permission_prompt(message: &str) -> bool { if success != TRUE { panic!( "Error flushing console input buffer: {}", - std::io::Error::last_os_error().to_string() + std::io::Error::last_os_error() ) } } @@ -1941,7 +1941,7 @@ fn permission_prompt(message: &str) -> bool { if success != TRUE { panic!( "Error emulating enter key press: {}", - std::io::Error::last_os_error().to_string() + std::io::Error::last_os_error() ) } } @@ -1954,7 +1954,7 @@ fn permission_prompt(message: &str) -> bool { if success != TRUE { panic!( "Error peeking console input buffer: {}", - std::io::Error::last_os_error().to_string() + std::io::Error::last_os_error() ) } events_read == 0 |