Skip to content

Commit d1f8029

Browse files
committed
Move cose content format trait higher
1 parent 9427634 commit d1f8029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bitwarden-crypto/src/content_format.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ impl ConstContentFormat for SpkiPublicKeyDerContentFormat {
143143
/// for SPKI public keys in DER format.
144144
pub type SpkiPublicKeyBytes = Bytes<SpkiPublicKeyDerContentFormat>;
145145

146+
/// A marker trait for COSE content formats.
147+
pub trait CoseContentFormat {}
148+
146149
/// Content format for COSE keys.
147150
#[derive(PartialEq, Eq, Clone, Debug)]
148151
pub struct CoseKeyContentFormat;
@@ -188,9 +191,6 @@ impl CoseContentFormat for CoseSign1ContentFormat {}
188191
/// serialized COSE Sign1 messages.
189192
pub type CoseSign1Bytes = Bytes<CoseSign1ContentFormat>;
190193

191-
/// A marker trait for COSE content formats.
192-
pub trait CoseContentFormat {}
193-
194194
impl<Ids: KeyIds, T: ConstContentFormat> PrimitiveEncryptable<Ids, Ids::Symmetric, EncString>
195195
for Bytes<T>
196196
{

0 commit comments

Comments
 (0)