Permalink
Browse files

Use eprintln! (#147)

eprint! and eprintln! has been introduced on Rust 1.19.0
They provides same functionalities as err! and errln!
  • Loading branch information...
equal-l2 authored and Aaronepower committed Sep 30, 2017
1 parent 3dc17b3 commit 78112951ae96c8221366d35c7a808fc552d69205
Showing with 4 additions and 13 deletions.
  1. +1 −8 Cargo.lock
  2. +0 −1 Cargo.toml
  3. +3 −3 src/input.rs
  4. +0 −1 src/main.rs
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -36,7 +36,6 @@ lazy_static = "0.2"
[dependencies]
encoding = "0.2"
errln = "0.1"
ignore = "0.2"
log = "0.3"
rayon = "0.7"
View
@@ -73,7 +73,7 @@ mod io {
let hex = match Vec::from_hex(contents) {
Ok(hex) => hex,
Err(err) => {
errln!("{}", err.description());
eprintln!("{}", err.description());
process::exit(1)
}
};
@@ -167,12 +167,12 @@ mod io {
";
pub fn add_input(input: &str, map: &mut Languages) -> ! {
errln!("{}", OUTPUT_ERROR);
eprintln!("{}", OUTPUT_ERROR);
process::exit(1);
}
pub fn match_output(format: &str, languages: Languages) -> ! {
errln!("{}", OUTPUT_ERROR);
eprintln!("{}", OUTPUT_ERROR);
process::exit(1);
}
}
View
@@ -3,7 +3,6 @@
// found in the LICENCE-{APACHE, MIT} file.
#[macro_use] extern crate clap;
#[macro_use] extern crate errln;
extern crate env_logger;
extern crate log;
extern crate tokei;

0 comments on commit 7811295

Please sign in to comment.