Remove trailing ;s from macro calls to silence new rustc warnings
authorMatt Corallo <git@bluematt.me>
Sun, 31 Oct 2021 18:19:39 +0000 (18:19 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Nov 2021 20:47:34 +0000 (20:47 +0000)
lightning/src/ln/channelmanager.rs
lightning/src/util/macro_logger.rs
lightning/src/util/ser_macros.rs

index 17a287c74c0859180292dfd21c9a85c6d5b10fda..4ebbc3e55346ee53aa9cf1cb861720f85198b5b5 100644 (file)
@@ -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())
        }
 }
 
index 788bc5eca11cc1de9e28cee1d6a64bcbe4419219..7477526133e7b99394e699e7193dda3c7a21bbba 100644 (file)
@@ -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)*)
        )
 }
index 0827a023aedfbe141ca6df425f8c3f11e447b17f..165d1f1edbacea61438ef3426828a1195336a39e 100644 (file)
@@ -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)),*})
        }
 }