diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-01 17:30:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 23:30:19 +0200 |
commit | 51ceed860b6f562c70fb09ae1c7173a9eb14473c (patch) | |
tree | 8780008e189e99ed5fbbadef45275a472fffe925 /runtime/ops | |
parent | 5e89d1a0ab7dd21ccabc91fb3226bab18a2bc18c (diff) |
chore: fix windows clippy errors (#20014)
Diffstat (limited to 'runtime/ops')
-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; |