Skip to content

Commit

Permalink
Fix trailing semicolon warning
Browse files Browse the repository at this point in the history
> warning: trailing semicolon in macro used in expression position
  • Loading branch information
rom1v committed Dec 26, 2022
1 parent 9ad9bc8 commit 537b3d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions relay-rust/src/relay/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,30 @@ macro_rules! cx_format {

macro_rules! cx_trace {
(target: $target:expr, $id:expr, $($arg:tt)*) => {
log::trace!(target: $target, "{}", cx_format!($id, $($arg)+));
log::trace!(target: $target, "{}", cx_format!($id, $($arg)+))
}
}

macro_rules! cx_debug {
(target: $target:expr, $id:expr, $($arg:tt)*) => {
log::debug!(target: $target, "{}", cx_format!($id, $($arg)+));
log::debug!(target: $target, "{}", cx_format!($id, $($arg)+))
}
}

macro_rules! cx_info {
(target: $target:expr, $id:expr, $($arg:tt)*) => {
log::info!(target: $target, "{}", cx_format!($id, $($arg)+));
log::info!(target: $target, "{}", cx_format!($id, $($arg)+))
}
}

macro_rules! cx_warn {
(target: $target:expr, $id:expr, $($arg:tt)*) => {
log::warn!(target: $target, "{}", cx_format!($id, $($arg)+));
log::warn!(target: $target, "{}", cx_format!($id, $($arg)+))
}
}

macro_rules! cx_error {
(target: $target:expr, $id:expr, $($arg:tt)*) => {
log::error!(target: $target, "{}", cx_format!($id, $($arg)+));
log::error!(target: $target, "{}", cx_format!($id, $($arg)+))
}
}

0 comments on commit 537b3d8

Please sign in to comment.