From 1cd95dd8b5046484ea79b1849e420d1c085d1e5b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 3 Aug 2021 15:29:12 -0400 Subject: chore: surface import map JSON parse error to user (#11573) --- runtime/ops/tty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ops') 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 }) -- cgit v1.2.3