summaryrefslogtreecommitdiffstats
path: root/openpgp/src/macros.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-08 09:29:18 +0100
committerAzul <azul@riseup.net>2020-12-08 12:51:56 +0100
commit6f77fb84cec4d3d62d3885ce6270919bc81419dc (patch)
tree4102eb7ebfa45ae5a94d705f652a025b4065d5a6 /openpgp/src/macros.rs
parent15429e90e6ec1ff1401500f592e8698a89b8cceb (diff)
openpgp: Use parens for assert_send_and_sync!.
Diffstat (limited to 'openpgp/src/macros.rs')
-rw-r--r--openpgp/src/macros.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/macros.rs b/openpgp/src/macros.rs
index 23167c4e..ef87d400 100644
--- a/openpgp/src/macros.rs
+++ b/openpgp/src/macros.rs
@@ -115,14 +115,14 @@ macro_rules! time_it {
///
/// ```
/// pub struct MyStruct {}
-/// assert_send_and_sync!{MyStruct}
+/// assert_send_and_sync!(MyStruct);
/// ```
///
/// For types with lifetimes, use the anonymous lifetime:
///
/// ```
/// pub struct WithLifetime<'a> {}
-/// assert_send_and_sync!{MyStruct<'_>}
+/// assert_send_and_sync!(MyStruct<'_>);
/// ```
///
/// For a type generic over another type `W`,
@@ -131,7 +131,7 @@ macro_rules! time_it {
///
/// ```
/// pub struct MyWriter<W: io::Write> {}
-/// assert_send_and_sync!{MyWriterStruct<W>, W: io::Write}
+/// assert_send_and_sync!(MyWriterStruct<W>, W: io::Write);
/// ```
///
/// This will assert that `MyWriterStruct<W>` is `Send` and `Sync`
@@ -141,7 +141,7 @@ macro_rules! time_it {
///
/// ```
/// pub struct MyWriterWithLifetime<a', C, W: io::Write> {}
-/// assert_send_and_sync!{MyWriterStruct<'_, C, W>, C, W: io::Write}
+/// assert_send_and_sync!(MyWriterStruct<'_, C, W>, C, W: io::Write);
/// ```
///
macro_rules! assert_send_and_sync {