Skip to content

Commit fb413ae

Browse files
committed
chore(cli/rustup-mode): import std::io
1 parent f63f82b commit fb413ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli/rustup_mode.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::borrow::Cow;
22
use std::env::consts::EXE_SUFFIX;
33
use std::fmt;
4-
use std::io::Write;
4+
use std::io::{self, Write};
55
use std::path::{Path, PathBuf};
66
use std::process::ExitStatus;
77
use std::str::FromStr;
@@ -49,8 +49,8 @@ fn handle_epipe(res: Result<utils::ExitCode>) -> Result<utils::ExitCode> {
4949
match res {
5050
Err(e) => {
5151
let root = e.root_cause();
52-
if let Some(io_err) = root.downcast_ref::<std::io::Error>()
53-
&& io_err.kind() == std::io::ErrorKind::BrokenPipe
52+
if let Some(io_err) = root.downcast_ref::<io::Error>()
53+
&& io_err.kind() == io::ErrorKind::BrokenPipe
5454
{
5555
return Ok(utils::ExitCode(0));
5656
}
@@ -1102,9 +1102,9 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
11021102
}
11031103
}
11041104

1105-
fn print_header<E>(t: &mut ColorableTerminal, s: &str) -> std::result::Result<(), E>
1105+
fn print_header<E>(t: &mut ColorableTerminal, s: &str) -> Result<(), E>
11061106
where
1107-
E: From<std::io::Error>,
1107+
E: From<io::Error>,
11081108
{
11091109
t.attr(terminalsource::Attr::Bold)?;
11101110
{

0 commit comments

Comments
 (0)