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
971ff5412a
commit
3fc3423f7e
@ -18,7 +18,7 @@ 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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user