diff options
author | Roel <polyfloyd@users.noreply.github.com> | 2017-10-22 17:42:40 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-22 08:42:40 -0700 |
commit | a1174797b4ce2259510f29d3468526b4c0d460c1 (patch) | |
tree | 2c3e614c661188992889062eff1b193be93ee5d8 /src/macros.rs | |
parent | 8af4a4b55b4eaa2df78be24e19200a524dc3da4c (diff) | |
download | alacritty-a1174797b4ce2259510f29d3468526b4c0d460c1.tar.gz alacritty-a1174797b4ce2259510f29d3468526b4c0d460c1.zip |
Rewrite err_println to eprintln introduced in Rust 1.19 (#799)
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/macros.rs b/src/macros.rs index 00a9b529..35e69f2d 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,32 +15,12 @@ #[macro_export] macro_rules! die { ($($arg:tt)*) => {{ - err_println!($($arg)*); + eprintln!($($arg)*); ::std::process::exit(1); }} } #[macro_export] -macro_rules! err_println { - ($($arg:tt)*) => {{ - if cfg!(feature = "err-println") { - use std::io::Write; - (writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); - } - }} -} - -#[macro_export] -macro_rules! err_print { - ($($arg:tt)*) => {{ - if cfg!(feature = "err-println") { - use std::io::Write; - (write!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); - } - }} -} - -#[macro_export] macro_rules! maybe { ($option:expr) => { match $option { |