Skip to content

Commit

Permalink
style(ast_tools): reformat macro (#7884)
Browse files Browse the repository at this point in the history
Fix indentation in macro definition.
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent 32935e6 commit 7637aac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/ast_tools/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ pub(super) fn __internal_log_enable() -> bool {
}

macro_rules! log {
($fmt:literal $(, $args:expr)*) => {
if $crate::logger::__internal_log_enable() {
print!($fmt$(, $args)*);
std::io::Write::flush(&mut std::io::stdout()).unwrap();
}
($fmt:literal $(, $args:expr)*) => {
if $crate::logger::__internal_log_enable() {
print!($fmt$(, $args)*);
std::io::Write::flush(&mut std::io::stdout()).unwrap();
}
}
}

macro_rules! log_success {
() => {
Expand Down

0 comments on commit 7637aac

Please sign in to comment.