Skip to content

Commit 2182445

Browse files
committed
wip
1 parent 6630c02 commit 2182445

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

rust/signed_doc/src/error.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ impl CatalystSignedDocError {
3232
pub fn error(&self) -> &anyhow::Error {
3333
&self.error
3434
}
35+
36+
/// Get the actual error.
37+
#[must_use]
38+
pub fn owned_error(self) -> anyhow::Error {
39+
self.error
40+
}
41+
42+
/// Get the actual error.
43+
#[must_use]
44+
pub fn owned_report(self) -> ProblemReport {
45+
self.report
46+
}
3547
}
3648

3749
impl fmt::Display for CatalystSignedDocError {

rust/signed_doc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use ed25519_dalek::VerifyingKey;
2424
use error::CatalystSignedDocError;
2525
use metadata::{ContentEncoding, ContentType};
2626
pub use metadata::{DocumentRef, ExtraFields, Metadata};
27-
pub use minicbor::{decode, encode, Decode, Decoder, Encode, Encoder};
27+
use minicbor::{decode, encode, Decode, Decoder, Encode};
2828
pub use signature::{IdUri, Signatures};
2929
use utils::context::DecodeSignDocCtx;
3030

0 commit comments

Comments
 (0)