summaryrefslogtreecommitdiff
path: root/runtime/permissions.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-01-15 01:10:12 -0500
committerGitHub <noreply@github.com>2022-01-15 07:10:12 +0100
commitad224f53c798e8417a63d98daeaf3cadc199666c (patch)
treef323be53d4f5b4289cd04296af1d35028dc23b15 /runtime/permissions.rs
parent903cb48fe94bbbb0c43f17cf51e84a5583ddb728 (diff)
chore: upgrade to rust 1.58 (#13377)
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r--runtime/permissions.rs6
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