mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-07 03:09:19 +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 {
|
macro_rules! warn {
|
||||||
($fmt:literal, $ex:expr) => {{
|
($fmt:literal, $ex:expr) => {{
|
||||||
print_emoji!("⚠️ ", "!", red, $fmt ,$ex);
|
print_emoji!("⚠️ ", "!", red, $fmt, $ex);
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! success {
|
macro_rules! success {
|
||||||
($fmt:literal, $ex:expr) => {{
|
($fmt:literal, $ex:expr) => {{
|
||||||
print_emoji!("✅ ", "✓", green, $fmt ,$ex);
|
print_emoji!("✅ ", "✓", green, $fmt, $ex);
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user