Browse Source

Cleanup imports.

develop
Ewan Higgs 6 years ago
parent
commit
471f61e610
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main.rs

+ 4
- 3
src/main.rs View File

@@ -22,6 +22,8 @@ extern crate byteorder;
#[macro_use]
extern crate serde_derive;

use std::io::Write;

use clap::{AppSettings, Arg, App, SubCommand};
mod commands;
use self::commands::*;
@@ -138,10 +140,9 @@ fn main() {
};

if let Err(ref e) = run_cli(options) {
use std::io::Write;
let stderr = &mut ::std::io::stderr();
let stderr = &mut std::io::stderr();
let errmsg = "Error writing ot stderr";
writeln!(stderr, "{}", e).expect(errmsg);
::std::process::exit(1);
std::process::exit(1);
}
}

Loading…
Cancel
Save