1
0
Fork 0
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:
David Sherret 2023-08-01 17:30:19 -04:00 committed by GitHub
parent 5e89d1a0ab
commit 51ceed860b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)]