Skip to content

Commit

Permalink
Make sure the syntax of the format string is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
lrubasze committed Dec 20, 2024
1 parent 289c8ec commit 388d68f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scrypto/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ macro_rules! error {
// in the future, we should address it proactively.
#[allow(unreachable_code)]
if false {
let _ = ($($args),+);
let _ = ::scrypto::prelude::sbor::rust::format!($($args),+);
}
}};
}
Expand All @@ -54,7 +54,7 @@ macro_rules! warn {
($($args: expr),+) => {{
// See `error` macro comment
if false {
let _ = ($($args),+);
let _ = ::scrypto::prelude::sbor::rust::format!($($args),+);
}
}};
}
Expand All @@ -81,7 +81,7 @@ macro_rules! info {
($($args: expr),+) => {{
// See `error` macro comment
if false {
let _ = ($($args),+);
let _ = ::scrypto::prelude::sbor::rust::format!($($args),+);
}
}};
}
Expand All @@ -108,7 +108,7 @@ macro_rules! debug {
($($args: expr),+) => {{
// See `error` macro comment
if false {
let _ = ($($args),+);
let _ = ::scrypto::prelude::sbor::rust::format!($($args),+);
}
}};
}
Expand All @@ -135,7 +135,7 @@ macro_rules! trace {
($($args: expr),+) => {{
// See `error` macro comment
if false {
let _ = ($($args),+);
let _ = ::scrypto::prelude::sbor::rust::format!($($args),+);
}
}};
}
Expand Down

0 comments on commit 388d68f

Please sign in to comment.