summaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/ui.rs b/src/ui.rs
index cb07337..1ee4631 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -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!(
"{} {}",