From 471f61e61042b27b5b7400eb9a97ab2bf2da5a73 Mon Sep 17 00:00:00 2001 From: Ewan Higgs Date: Fri, 9 Mar 2018 17:26:28 +0100 Subject: [PATCH] Cleanup imports. --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 080b472..7b7cf81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); } }