summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/header/ctb.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/packet/header/ctb.rs
parent15429e90e6ec1ff1401500f592e8698a89b8cceb (diff)
openpgp: Use parens for assert_send_and_sync!.
Diffstat (limited to 'openpgp/src/packet/header/ctb.rs')
-rw-r--r--openpgp/src/packet/header/ctb.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/packet/header/ctb.rs b/openpgp/src/packet/header/ctb.rs
index 8dc2e949..2e32b41d 100644
--- a/openpgp/src/packet/header/ctb.rs
+++ b/openpgp/src/packet/header/ctb.rs
@@ -39,7 +39,7 @@ pub struct CTBNew {
/// Packet CTB fields
common: CTBCommon,
}
-assert_send_and_sync!{CTBNew}
+assert_send_and_sync!(CTBNew);
impl CTBNew {
/// Constructs a new-style CTB.
@@ -91,7 +91,7 @@ pub enum PacketLengthType {
/// from the context, e.g., EOF.
Indeterminate,
}
-assert_send_and_sync!{PacketLengthType}
+assert_send_and_sync!(PacketLengthType);
impl TryFrom<u8> for PacketLengthType {
type Error = anyhow::Error;
@@ -131,7 +131,7 @@ pub struct CTBOld {
/// Type of length specifier.
length_type: PacketLengthType,
}
-assert_send_and_sync!{CTBOld}
+assert_send_and_sync!(CTBOld);
impl CTBOld {
/// Constructs an old-style CTB.
@@ -207,7 +207,7 @@ pub enum CTB {
/// Old PGP 2.6 header format.
Old(CTBOld),
}
-assert_send_and_sync!{CTB}
+assert_send_and_sync!(CTB);
impl CTB {
/// Constructs a new-style CTB.