Skip to content

Commit

Permalink
Fix attachment already being a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Oct 20, 2023
1 parent 4c5bb78 commit 5a65e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bitwarden/src/vault/cipher/attachment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl TryFrom<bitwarden_api_api::models::AttachmentResponseModel> for Attachment
Ok(Self {
id: attachment.id,
url: attachment.url,
size: attachment.size.map(|s| s.to_string()),
size: attachment.size,
size_name: attachment.size_name,
file_name: EncString::try_from(attachment.file_name)?,
key: EncString::try_from(attachment.key)?,
Expand Down

0 comments on commit 5a65e96

Please sign in to comment.