mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
821296f5ac
commit
9ff15156e5
1 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! time {
|
macro_rules! time {
|
||||||
($expr:expr) => {
|
($expr:expr) => {
|
||||||
time!($expr, stringify!($expr))
|
$crate::time!(stringify!($expr), $expr)
|
||||||
};
|
};
|
||||||
($label:expr, $expr:expr) => {
|
($label:expr, $expr:expr) => {
|
||||||
time!($expr, "{}", $label)
|
$crate::time!($expr, "{}", $label)
|
||||||
};
|
};
|
||||||
($expr:expr, $fmt:expr, $($args:tt)*) => {{
|
($expr:expr, $fmt:expr, $($args:tt)*) => {{
|
||||||
if tracing::enabled!(tracing::Level::DEBUG) {
|
if tracing::enabled!(tracing::Level::DEBUG) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue