Skip to content

Commit

Permalink
extsort: use fail_format macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Aug 31, 2022
1 parent 1644a21 commit bd180c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/extsort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ pub fn run(argv: &[&str]) -> CliResult<()> {

let mut input_reader = io::BufReader::new(match fs::File::open(&args.arg_input) {
Ok(f) => f,
Err(e) => return fail!(format!("Cannot read input file {e}")),
Err(e) => return fail_format!("Cannot read input file {e}"),
});

let mut output_writer = io::BufWriter::new(match fs::File::create(&args.arg_output) {
Ok(f) => f,
Err(e) => return fail!(format!("Cannot create output file: {e}")),
Err(e) => return fail_format!("Cannot create output file: {e}"),
});

let sorter: ExternalSorter<String, io::Error, MemoryLimitedBufferBuilder> =
Expand Down

0 comments on commit bd180c3

Please sign in to comment.