mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
feat: ui format
This commit is contained in:
parent
9c6f56b836
commit
e276c12192
|
@ -1,5 +1,5 @@
|
||||||
macro_rules! print_emoji {
|
macro_rules! print_emoji {
|
||||||
($emoji:expr, $sign:expr, $color: ident ,$fmt:literal, $ex:expr) => {{
|
($emoji:expr, $sign:expr, $color: ident, $fmt:literal, $ex:expr) => {{
|
||||||
use console::{style, Emoji};
|
use console::{style, Emoji};
|
||||||
use std::env;
|
use std::env;
|
||||||
let formatstr = format!($fmt, $ex);
|
let formatstr = format!($fmt, $ex);
|
||||||
|
|
Loading…
Reference in a new issue