diff --git a/src/main.rs b/src/main.rs index 88fb32167a724b9bf43cb3eb106ed474fbc0fdf4..60e9184fd3dccde1131be42d18b8bee58d089c42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1496,12 +1496,12 @@ fn format(out: &mut Output, repo: &Repository, m: &ArgMatches) -> Result<()> { } else { DiffColors::plain() }; - let mut out : Box = if to_stdout { + let mut out : Box = if to_stdout { Box::new(out) } else { Box::new(std::io::stdout()) }; - let patch_file = |name: &str| -> Result> { + let patch_file = |name: &str| -> Result> { let name = format!("{}{}", file_prefix, name); println!("{}", name); Ok(Box::new(try!(File::create(name))))