Skip to content

Commit 3b0d2c1

Browse files
committed
%s/std::io/io/g
1 parent bdcd19d commit 3b0d2c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/cargo-fmt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern crate getopts;
1717
extern crate serde_json as json;
1818

1919
use std::env;
20-
use std::io::Write;
20+
use std::io::{self, Write};
2121
use std::path::PathBuf;
2222
use std::process::{Command, ExitStatus};
2323
use std::str;
@@ -126,7 +126,7 @@ pub enum Verbosity {
126126
fn format_crate(
127127
verbosity: Verbosity,
128128
workspace_hitlist: &WorkspaceHitlist,
129-
) -> Result<ExitStatus, std::io::Error> {
129+
) -> Result<ExitStatus, io::Error> {
130130
let targets = get_targets(workspace_hitlist)?;
131131

132132
// Currently only bin and lib files get formatted
@@ -364,7 +364,7 @@ fn format_files(
364364
files: &[PathBuf],
365365
fmt_args: &[String],
366366
verbosity: Verbosity,
367-
) -> Result<ExitStatus, std::io::Error> {
367+
) -> Result<ExitStatus, io::Error> {
368368
let stdout = if verbosity == Verbosity::Quiet {
369369
std::process::Stdio::null()
370370
} else {
@@ -386,8 +386,8 @@ fn format_files(
386386
.args(fmt_args)
387387
.spawn()
388388
.map_err(|e| match e.kind() {
389-
std::io::ErrorKind::NotFound => std::io::Error::new(
390-
std::io::ErrorKind::Other,
389+
io::ErrorKind::NotFound => io::Error::new(
390+
io::ErrorKind::Other,
391391
"Could not run rustfmt, please make sure it is in your PATH.",
392392
),
393393
_ => e,

0 commit comments

Comments
 (0)