Skip to content

Commit 81138ea

Browse files
committed
Apply allow private interfaces to content format
1 parent a5abaae commit 81138ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/bitwarden-crypto/src/content_format.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ pub(crate) type Utf8Bytes = Bytes<Utf8ContentFormat>;
108108
pub struct OctetStreamContentFormat;
109109
impl private::Sealed for OctetStreamContentFormat {}
110110
impl ConstContentFormat for OctetStreamContentFormat {
111+
#[allow(private_interfaces)]
111112
fn content_format() -> ContentFormat {
112113
ContentFormat::OctetStream
113114
}
@@ -121,7 +122,7 @@ pub type OctetStreamBytes = Bytes<OctetStreamContentFormat>;
121122
pub struct Pkcs8PrivateKeyDerContentFormat;
122123
impl private::Sealed for Pkcs8PrivateKeyDerContentFormat {}
123124
impl ConstContentFormat for Pkcs8PrivateKeyDerContentFormat {
124-
#[allow(exported_private_dependencies)]
125+
#[allow(private_interfaces)]
125126
fn content_format() -> ContentFormat {
126127
ContentFormat::Pkcs8PrivateKey
127128
}
@@ -135,6 +136,7 @@ pub type Pkcs8PrivateKeyBytes = Bytes<Pkcs8PrivateKeyDerContentFormat>;
135136
pub struct SpkiPublicKeyDerContentFormat;
136137
impl private::Sealed for SpkiPublicKeyDerContentFormat {}
137138
impl ConstContentFormat for SpkiPublicKeyDerContentFormat {
139+
#[allow(private_interfaces)]
138140
fn content_format() -> ContentFormat {
139141
ContentFormat::SPKIPublicKeyDer
140142
}
@@ -148,6 +150,7 @@ pub type SpkiPublicKeyBytes = Bytes<SpkiPublicKeyDerContentFormat>;
148150
pub struct CoseKeyContentFormat;
149151
impl private::Sealed for CoseKeyContentFormat {}
150152
impl ConstContentFormat for CoseKeyContentFormat {
153+
#[allow(private_interfaces)]
151154
fn content_format() -> ContentFormat {
152155
ContentFormat::CoseKey
153156
}
@@ -162,6 +165,7 @@ pub type CoseKeyBytes = Bytes<CoseKeyContentFormat>;
162165
pub struct BitwardenLegacyKeyContentFormat;
163166
impl private::Sealed for BitwardenLegacyKeyContentFormat {}
164167
impl ConstContentFormat for BitwardenLegacyKeyContentFormat {
168+
#[allow(private_interfaces)]
165169
fn content_format() -> ContentFormat {
166170
ContentFormat::BitwardenLegacyKey
167171
}
@@ -176,6 +180,7 @@ pub type BitwardenLegacyKeyBytes = Bytes<BitwardenLegacyKeyContentFormat>;
176180
pub struct CoseSign1ContentFormat;
177181
impl private::Sealed for CoseSign1ContentFormat {}
178182
impl ConstContentFormat for CoseSign1ContentFormat {
183+
#[allow(private_interfaces)]
179184
fn content_format() -> ContentFormat {
180185
ContentFormat::CoseSign1
181186
}

0 commit comments

Comments
 (0)