Skip to content

Commit

Permalink
Fix cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Jul 20, 2023
1 parent 2dceba2 commit 8a4de6d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3496,11 +3496,7 @@ fn wait_on_child(cmd: &Command, program: &str, child: &mut Child) -> Result<(),
}
}

fn run_inner(
cmd: &mut Command,
program: &str,
pipe_writer: File,
) -> Result<(), Error> {
fn run_inner(cmd: &mut Command, program: &str, pipe_writer: File) -> Result<(), Error> {
let mut child = spawn(cmd, program, pipe_writer)?;
wait_on_child(cmd, program, &mut child)
}
Expand Down Expand Up @@ -3531,11 +3527,7 @@ fn run_output(cmd: &mut Command, program: &str) -> Result<Vec<u8>, Error> {
Ok(stdout)
}

fn spawn(
cmd: &mut Command,
program: &str,
pipe_writer: File,
) -> Result<Child, Error> {
fn spawn(cmd: &mut Command, program: &str, pipe_writer: File) -> Result<Child, Error> {
struct ResetStderr<'cmd>(&'cmd mut Command);

impl Drop for ResetStderr<'_> {
Expand Down

0 comments on commit 8a4de6d

Please sign in to comment.