mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-05 10:19:18 +00:00
optimized the UI code
This commit is contained in:
parent
3fc3423f7e
commit
236db88d7a
@ -17,12 +17,12 @@ macro_rules! print_emoji {
|
||||
|
||||
macro_rules! warn {
|
||||
($fmt:literal, $ex:expr) => {{
|
||||
print_emoji!("⚠️ ", "!", red, $fmt ,$ex);
|
||||
print_emoji!("⚠️ ", "!", red, $fmt, $ex);
|
||||
}};
|
||||
}
|
||||
|
||||
macro_rules! success {
|
||||
($fmt:literal, $ex:expr) => {{
|
||||
print_emoji!("✅ ", "✓", green, $fmt ,$ex);
|
||||
print_emoji!("✅ ", "✓", green, $fmt, $ex);
|
||||
}};
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user