mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
chore: fix windows clippy errors (#20014)
This commit is contained in:
parent
5e89d1a0ab
commit
51ceed860b
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
use std::io::Error;
|
use std::io::Error;
|
||||||
use std::rc::Rc;
|
|
||||||
|
|
||||||
use deno_core::error::AnyError;
|
use deno_core::error::AnyError;
|
||||||
use deno_core::op;
|
use deno_core::op;
|
||||||
|
@ -18,7 +17,9 @@ use std::collections::HashMap;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
#[derive(Default, Clone)]
|
#[derive(Default, Clone)]
|
||||||
struct TtyModeStore(Rc<RefCell<HashMap<ResourceId, termios::Termios>>>);
|
struct TtyModeStore(
|
||||||
|
std::rc::Rc<RefCell<HashMap<ResourceId, termios::Termios>>>,
|
||||||
|
);
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
impl TtyModeStore {
|
impl TtyModeStore {
|
||||||
|
@ -35,8 +36,6 @@ impl TtyModeStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
|
||||||
use deno_core::error::custom_error;
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use winapi::shared::minwindef::DWORD;
|
use winapi::shared::minwindef::DWORD;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|
Loading…
Reference in a new issue