diff options
-rw-r--r-- | runtime/ops/tty.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index c77d0ee99..b24c9d893 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -1,7 +1,6 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use std::io::Error; -use std::rc::Rc; use deno_core::error::AnyError; use deno_core::op; @@ -18,7 +17,9 @@ use std::collections::HashMap; #[cfg(unix)] #[derive(Default, Clone)] -struct TtyModeStore(Rc<RefCell<HashMap<ResourceId, termios::Termios>>>); +struct TtyModeStore( + std::rc::Rc<RefCell<HashMap<ResourceId, termios::Termios>>>, +); #[cfg(unix)] impl TtyModeStore { @@ -36,8 +37,6 @@ impl TtyModeStore { } #[cfg(windows)] -use deno_core::error::custom_error; -#[cfg(windows)] use winapi::shared::minwindef::DWORD; #[cfg(windows)] use winapi::um::wincon; |