summaryrefslogtreecommitdiff
path: root/runtime/ops/tty.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-03 15:29:12 -0400
committerGitHub <noreply@github.com>2021-08-03 15:29:12 -0400
commit1cd95dd8b5046484ea79b1849e420d1c085d1e5b (patch)
treef7f74e9c1b059184b621b895ad380e81416b29c3 /runtime/ops/tty.rs
parent86f89f922296c3c9e082268d01044f2e04a2e210 (diff)
chore: surface import map JSON parse error to user (#11573)
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r--runtime/ops/tty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs
index bc45c9375..e9e2e6700 100644
--- a/runtime/ops/tty.rs
+++ b/runtime/ops/tty.rs
@@ -228,7 +228,7 @@ fn op_isatty(
{
use winapi::um::consoleapi;
- let handle = get_windows_handle(&std_file)?;
+ let handle = get_windows_handle(std_file)?;
let mut test_mode: DWORD = 0;
// If I cannot get mode out of console, it is not a console.
Ok(unsafe { consoleapi::GetConsoleMode(handle, &mut test_mode) != 0 })