diff options
author | Azul <azul@riseup.net> | 2020-12-08 12:47:29 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 12:51:56 +0100 |
commit | e9439f7c4b902265d3f599c224e5e5ac9798014e (patch) | |
tree | 6fea3149125afac76ba94efaa54a1f144a2f615d /openpgp/src/macros.rs | |
parent | 96dfdae428197dd180cf10cff54b96ce8bc35d7b (diff) |
openpgp: Allow dangling `,` in assert_send_and_sync! calls.
Diffstat (limited to 'openpgp/src/macros.rs')
-rw-r--r-- | openpgp/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)? ),* {} |