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/fmt.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/fmt.rs')
-rw-r--r-- | openpgp/src/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/fmt.rs b/openpgp/src/fmt.rs index c06c6faf..db372fdf 100644 --- a/openpgp/src/fmt.rs +++ b/openpgp/src/fmt.rs @@ -61,7 +61,7 @@ pub mod hex { offset: usize, } - assert_send_and_sync!{Dumper<Vec<u8>>} + assert_send_and_sync!{Dumper<W>, W: io::Write} impl<W: io::Write> Dumper<W> { /// Creates a new dumper. |