summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-08 12:47:29 +0100
committerAzul <azul@riseup.net>2020-12-08 12:51:56 +0100
commite9439f7c4b902265d3f599c224e5e5ac9798014e (patch)
tree6fea3149125afac76ba94efaa54a1f144a2f615d
parent96dfdae428197dd180cf10cff54b96ce8bc35d7b (diff)
openpgp: Allow dangling `,` in assert_send_and_sync! calls.
-rw-r--r--openpgp/src/macros.rs2
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)? ),*
{}