From e9439f7c4b902265d3f599c224e5e5ac9798014e Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 8 Dec 2020 12:47:29 +0100 Subject: openpgp: Allow dangling `,` in assert_send_and_sync! calls. --- openpgp/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp/src/macros.rs b/openpgp/src/macros.rs index ef87d400..7810a69b 100644 --- a/openpgp/src/macros.rs +++ b/openpgp/src/macros.rs @@ -145,7 +145,7 @@ macro_rules! time_it { /// ``` /// macro_rules! assert_send_and_sync { - ( $x:ty, $( $g:ident$( : $b:path )? ),*) => { + ( $x:ty, $( $g:ident$( : $b:path )? $(,)?)*) => { impl<$( $g ),*> crate::types::Sendable for $x where $( $g: Send + Sync $(+ $b)? ),* {} -- cgit v1.2.3