mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
9 lines
186 B
Rust
9 lines
186 B
Rust
#[macro_export]
|
|
macro_rules! try_format {
|
|
($($arg:tt)*) => {{
|
|
use std::fmt::Write;
|
|
|
|
let mut output = String::new();
|
|
output.write_fmt(format_args!($($arg)*)).map(|_| output)
|
|
}}
|
|
}
|