Skip to content

Commit

Permalink
Fixup macro_rules! indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Sep 14, 2024
1 parent 5a74ad5 commit a2fda7a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/test_utils/conformu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ impl ConformU {
let outcome;

macro_rules! trace_outcome {
(@impl $args:tt) => {
match outcome {
"OK" => tracing::trace! $args,
"INFO" => tracing::info! $args,
"WARN" => tracing::warn! $args,
"DEBUG" | "" => tracing::debug! $args,
"ISSUE" | "ERROR" => tracing::error! $args,
_ => return None,
}
};

($target:literal, $($args:tt)*) => {
trace_outcome!(@impl (target: concat!("ascom_alpaca::conformu::", $target), $($args)*, "{line}"))
};
}
(@impl $args:tt) => {
match outcome {
"OK" => tracing::trace! $args,
"INFO" => tracing::info! $args,
"WARN" => tracing::warn! $args,
"DEBUG" | "" => tracing::debug! $args,
"ISSUE" | "ERROR" => tracing::error! $args,
_ => return None,
}
};

($target:literal, $($args:tt)*) => {
trace_outcome!(@impl (target: concat!("ascom_alpaca::conformu::", $target), $($args)*, "{line}"))
};
}

match self {
Self::AlpacaProtocol => {
Expand Down

0 comments on commit a2fda7a

Please sign in to comment.