Skip to content

Commit 235f3bc

Browse files
committed
Apply cargo fmt
1 parent bf9f8c4 commit 235f3bc

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

crates/bitwarden-crypto/src/content_format.rs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ impl ConstContentFormat for Utf8ContentFormat {
101101
ContentFormat::Utf8
102102
}
103103
}
104-
/// Utf8Bytes is a type alias for Bytes with `Utf8ContentFormat`, which is used for any textual data.
104+
/// Utf8Bytes is a type alias for Bytes with `Utf8ContentFormat`, which is used for any textual
105+
/// data.
105106
pub(crate) type Utf8Bytes = Bytes<Utf8ContentFormat>;
106107

107108
/// Content format for raw bytes. Used for attachments and send seed keys.
@@ -113,8 +114,8 @@ impl ConstContentFormat for OctetStreamContentFormat {
113114
ContentFormat::OctetStream
114115
}
115116
}
116-
/// OctetStreamBytes is a type alias for Bytes with `OctetStreamContentFormat`. This should be used for e.g. attachments and other data without an
117-
/// explicit content format.
117+
/// OctetStreamBytes is a type alias for Bytes with `OctetStreamContentFormat`. This should be used
118+
/// for e.g. attachments and other data without an explicit content format.
118119
pub type OctetStreamBytes = Bytes<OctetStreamContentFormat>;
119120

120121
/// Content format for PKCS8 private keys in DER format.
@@ -126,7 +127,8 @@ impl ConstContentFormat for Pkcs8PrivateKeyDerContentFormat {
126127
ContentFormat::Pkcs8PrivateKey
127128
}
128129
}
129-
/// Pkcs8PrivateKeyBytes is a type alias for Bytes with `Pkcs8PrivateKeyDerContentFormat`. This is used for PKCS8 private keys in DER format.
130+
/// Pkcs8PrivateKeyBytes is a type alias for Bytes with `Pkcs8PrivateKeyDerContentFormat`. This is
131+
/// used for PKCS8 private keys in DER format.
130132
pub type Pkcs8PrivateKeyBytes = Bytes<Pkcs8PrivateKeyDerContentFormat>;
131133

132134
/// Content format for SPKI public keys in DER format.
@@ -138,7 +140,8 @@ impl ConstContentFormat for SpkiPublicKeyDerContentFormat {
138140
ContentFormat::SPKIPublicKeyDer
139141
}
140142
}
141-
/// SpkiPublicKeyBytes is a type alias for Bytes with `SpkiPublicKeyDerContentFormat`. This is used for SPKI public keys in DER format.
143+
/// SpkiPublicKeyBytes is a type alias for Bytes with `SpkiPublicKeyDerContentFormat`. This is used
144+
/// for SPKI public keys in DER format.
142145
pub type SpkiPublicKeyBytes = Bytes<SpkiPublicKeyDerContentFormat>;
143146

144147
/// Content format for COSE keys.
@@ -151,7 +154,8 @@ impl ConstContentFormat for CoseKeyContentFormat {
151154
}
152155
}
153156
impl CoseContentFormat for CoseKeyContentFormat {}
154-
/// CoseKeyBytes is a type alias for Bytes with `CoseKeyContentFormat`. This is used for serialized CoseKey objects.
157+
/// CoseKeyBytes is a type alias for Bytes with `CoseKeyContentFormat`. This is used for serialized
158+
/// CoseKey objects.
155159
pub type CoseKeyBytes = Bytes<CoseKeyContentFormat>;
156160

157161
/// A legacy content format for Bitwarden keys. See `ContentFormat::BitwardenLegacyKey`
@@ -163,8 +167,9 @@ impl ConstContentFormat for BitwardenLegacyKeyContentFormat {
163167
ContentFormat::BitwardenLegacyKey
164168
}
165169
}
166-
/// BitwardenLegacyKeyBytes is a type alias for Bytes with `BitwardenLegacyKeyContentFormat`. This is used for the legacy format for symmetric keys.
167-
/// A description of the format is available in the `ContentFormat::BitwardenLegacyKey` documentation.
170+
/// BitwardenLegacyKeyBytes is a type alias for Bytes with `BitwardenLegacyKeyContentFormat`. This
171+
/// is used for the legacy format for symmetric keys. A description of the format is available in
172+
/// the `ContentFormat::BitwardenLegacyKey` documentation.
168173
pub type BitwardenLegacyKeyBytes = Bytes<BitwardenLegacyKeyContentFormat>;
169174

170175
/// Content format for COSE Sign1 messages.
@@ -177,7 +182,8 @@ impl ConstContentFormat for CoseSign1ContentFormat {
177182
}
178183
}
179184
impl CoseContentFormat for CoseSign1ContentFormat {}
180-
/// CoseSign1Bytes is a type alias for Bytes with `CoseSign1ContentFormat`. This is used for serialized COSE Sign1 messages.
185+
/// CoseSign1Bytes is a type alias for Bytes with `CoseSign1ContentFormat`. This is used for
186+
/// serialized COSE Sign1 messages.
181187
pub type CoseSign1Bytes = Bytes<CoseSign1ContentFormat>;
182188

183189
/// A marker trait for COSE content formats.

0 commit comments

Comments
 (0)