Skip to content

Commit

Permalink
crossterm: remove unused import when not using "windows" (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Sep 10, 2023
1 parent 58227fe commit f304333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cursive/src/backends/crossterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use std::{
cell::{Cell, RefCell, RefMut},
io::{self, BufWriter, Write},
io::{BufWriter, Write},
time::Duration,
};

Expand Down Expand Up @@ -37,7 +37,7 @@ use crate::{
};

#[cfg(windows)]
type Stdout = io::Stdout;
type Stdout = std::io::Stdout;

#[cfg(unix)]
type Stdout = std::fs::File;
Expand Down Expand Up @@ -209,7 +209,7 @@ impl Backend {
let stdout = std::fs::File::create("/dev/tty")?;

#[cfg(windows)]
let stdout = io::stdout();
let stdout = std::io::stdout();

Self::init_with_stdout(stdout)
}
Expand Down

0 comments on commit f304333

Please sign in to comment.