From: Matt Corallo Date: Sun, 31 Oct 2021 18:19:39 +0000 (+0000) Subject: Remove trailing ;s from macro calls to silence new rustc warnings X-Git-Tag: v0.0.103~1^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b2ce9d387480c7e4131c9e7aa5047c7711aa3cf7;p=rust-lightning Remove trailing ;s from macro calls to silence new rustc warnings --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 17a287c74..4ebbc3e55 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -1141,7 +1141,7 @@ macro_rules! handle_monitor_err { res } }; ($self: ident, $err: expr, $channel_state: expr, $entry: expr, $action_type: path, $resend_raa: expr, $resend_commitment: expr, $failed_forwards: expr, $failed_fails: expr) => { - handle_monitor_err!($self, $err, $channel_state, $entry, $action_type, $resend_raa, $resend_commitment, $failed_forwards, $failed_fails, Vec::new()); + handle_monitor_err!($self, $err, $channel_state, $entry, $action_type, $resend_raa, $resend_commitment, $failed_forwards, $failed_fails, Vec::new()) } } diff --git a/lightning/src/util/macro_logger.rs b/lightning/src/util/macro_logger.rs index 788bc5eca..747752613 100644 --- a/lightning/src/util/macro_logger.rs +++ b/lightning/src/util/macro_logger.rs @@ -213,6 +213,6 @@ macro_rules! log_debug { #[macro_export] macro_rules! log_trace { ($logger: expr, $($arg:tt)*) => ( - log_given_level!($logger, $crate::util::logger::Level::Trace, $($arg)*); + log_given_level!($logger, $crate::util::logger::Level::Trace, $($arg)*) ) } diff --git a/lightning/src/util/ser_macros.rs b/lightning/src/util/ser_macros.rs index 0827a023a..165d1f1ed 100644 --- a/lightning/src/util/ser_macros.rs +++ b/lightning/src/util/ser_macros.rs @@ -310,7 +310,7 @@ macro_rules! write_ver_prefix { /// correctly. macro_rules! write_tlv_fields { ($stream: expr, {$(($type: expr, $field: expr, $fieldty: tt)),* $(,)*}) => { - encode_varint_length_prefixed_tlv!($stream, {$(($type, $field, $fieldty)),*}); + encode_varint_length_prefixed_tlv!($stream, {$(($type, $field, $fieldty)),*}) } }