diff options
author | Tim Oram <mitmaro@gmail.com> | 2016-12-21 11:35:58 -0330 |
---|---|---|
committer | Tim Oram <mitmaro@gmail.com> | 2016-12-21 11:35:58 -0330 |
commit | 857573330cf7563c34d72e28d88e5cfda1e60405 (patch) | |
tree | 6d35ecece7fe3d6d75dba500331368cdcc891251 | |
parent | b9297cab037df8f7f07fe1d39fbd7cf1d2c2ad7b (diff) |
Write to input file0.0.1
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index e1623f1..b167af9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -167,12 +167,12 @@ fn main() { } // Create a path to the desired file - let outfilepath = Path::new("git-rebase-output.txt"); - let outfiledisplay = path.display(); - +// let outfilepath = Path::new("git-rebase-output.txt"); +// let outfiledisplay = path.display(); + // Open a file in write-only mode, returns `io::Result<File>` - let mut outfile = match File::create(outfilepath) { - Err(why) => panic!("couldn't create {}: {}", outfiledisplay, why.description()), + let mut outfile = match File::create(path) { + Err(why) => panic!("couldn't create {}: {}", display, why.description()), Ok(outfile) => outfile, }; |