Skip to content

Commit 02cc7b3

Browse files
committed
Clippy cleanup
1 parent 9f334fb commit 02cc7b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/bitwarden-crypto/src/content_format.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ impl<T: ConstContentFormat> KeyEncryptable<SymmetricCryptoKey, EncString> for &S
166166
}
167167
}
168168

169-
impl Into<SerializedBytes<Utf8ContentFormat>> for String {
170-
fn into(self) -> SerializedBytes<Utf8ContentFormat> {
171-
SerializedBytes::from(self.into_bytes())
169+
impl From<String> for SerializedBytes<Utf8ContentFormat> {
170+
fn from(val: String) -> Self {
171+
SerializedBytes::from(val.into_bytes())
172172
}
173173
}
174174

175-
impl Into<SerializedBytes<Utf8ContentFormat>> for &str {
176-
fn into(self) -> SerializedBytes<Utf8ContentFormat> {
177-
SerializedBytes::from(self.as_bytes().to_vec())
175+
impl From<&str> for SerializedBytes<Utf8ContentFormat> {
176+
fn from(val: &str) -> Self {
177+
SerializedBytes::from(val.as_bytes().to_vec())
178178
}
179179
}

0 commit comments

Comments
 (0)