diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-15 12:30:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 12:30:25 -0400 |
commit | 635eed93731c3616cacf53860b9aeeeb8cfe158b (patch) | |
tree | 04509d5720189fe12b2021500c461ccea1ddfa8e /runtime/permissions.rs | |
parent | ee0c0586b318fe23908a3b9b4311b26d79c5c8a1 (diff) |
chore: fix Windows specific clippy errors (#15212)
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r-- | runtime/permissions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs index ab8baec89..de44989eb 100644 --- a/runtime/permissions.rs +++ b/runtime/permissions.rs @@ -1912,6 +1912,7 @@ fn permission_prompt(message: &str, name: &str) -> bool { use winapi::um::winuser::MAPVK_VK_TO_VSC; use winapi::um::winuser::VK_RETURN; + // SAFETY: winapi calls unsafe { let stdin = GetStdHandle(STD_INPUT_HANDLE); // emulate an enter key press to clear any line buffered console characters |