diff options
| author | Zerotask <Zerotask@users.noreply.github.com> | 2021-04-18 15:40:47 +0200 |
|---|---|---|
| committer | Zerotask <Zerotask@users.noreply.github.com> | 2021-04-18 15:40:47 +0200 |
| commit | bd48544e25bb58f86fee1b1a5004e961996a3388 (patch) | |
| tree | e51850db9813f75d2150818ac69382fdba0d2afb /src/ui.rs | |
| parent | c0e3daacaf6850811df5bc57fa43e0f249d5cfa4 (diff) | |
style: formatted files with rustfmt
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -1,14 +1,10 @@ macro_rules! warn { ($fmt:literal, $ex:expr) => {{ - use std::env; use console::{style, Emoji}; + use std::env; let formatstr = format!($fmt, $ex); if env::var("NO_EMOJI").is_ok() { - println!( - "{} {}", - style("!").red(), - style(formatstr).red() - ); + println!("{} {}", style("!").red(), style(formatstr).red()); } else { println!( "{} {}", @@ -21,15 +17,11 @@ macro_rules! warn { macro_rules! success { ($fmt:literal, $ex:expr) => {{ - use std::env; use console::{style, Emoji}; + use std::env; let formatstr = format!($fmt, $ex); if env::var("NO_EMOJI").is_ok() { - println!( - "{} {}", - style("✓").green(), - style(formatstr).green() - ); + println!("{} {}", style("✓").green(), style(formatstr).green()); } else { println!( "{} {}", |
