Skip to content

Commit 5f14e50

Browse files
committed
fix
1 parent 6f4007a commit 5f14e50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust/signed_doc/src/metadata/document_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ impl TryFrom<DocumentId> for Value {
4040
type Error = anyhow::Error;
4141

4242
fn try_from(value: DocumentId) -> Result<Self, Self::Error> {
43-
encode_cbor_uuid(value.0).map_err(|e| anyhow::anyhow!("{e}"))
43+
encode_cbor_uuid(value.0)
4444
}
4545
}

rust/signed_doc/src/metadata/document_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ impl TryFrom<DocumentType> for Value {
4040
type Error = anyhow::Error;
4141

4242
fn try_from(value: DocumentType) -> Result<Self, Self::Error> {
43-
encode_cbor_uuid(value.0).map_err(|e| anyhow::anyhow!("{e}"))
43+
encode_cbor_uuid(value.0)
4444
}
4545
}

rust/signed_doc/src/metadata/document_version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ impl TryFrom<DocumentVersion> for Value {
3939
type Error = anyhow::Error;
4040

4141
fn try_from(value: DocumentVersion) -> Result<Self, Self::Error> {
42-
encode_cbor_uuid(value.0).map_err(|e| anyhow::anyhow!("{e}"))
42+
encode_cbor_uuid(value.0)
4343
}
4444
}

0 commit comments

Comments
 (0)