diff options
author | Azul <azul@riseup.net> | 2020-12-07 16:11:52 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 10:36:04 +0100 |
commit | 88df27d0ae174b87e980371c5600d470516ed116 (patch) | |
tree | 76cd51f47ab8b94b1cd20149d3b328946fc34c3a /openpgp/src/armor.rs | |
parent | b956d36cb50cac28aa9da0e373fb33c9a4c120af (diff) |
openpgp: Allow generic types in assert_send_and_sync!.
- Use generics and the anonmymous lifetime in `assert_send_and_sync!`.
- See 627.
Diffstat (limited to 'openpgp/src/armor.rs')
-rw-r--r-- | openpgp/src/armor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs index e901cc1b..2852ac72 100644 --- a/openpgp/src/armor.rs +++ b/openpgp/src/armor.rs @@ -174,7 +174,7 @@ pub struct Writer<W: Write> { dirty: bool, } -assert_send_and_sync!{Writer<Vec<u8>>} +assert_send_and_sync!{Writer<W>, W: Write} impl<W: Write> Writer<W> { /// Constructs a new filter for the given type of data. |