Skip to content

Commit 8e5879e

Browse files
committed
fix(rust/signed_doc): more cleanup
1 parent ebcc8e4 commit 8e5879e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rust/signed_doc/examples/mk_signed_doc.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88
path::PathBuf,
99
};
1010

11-
use catalyst_signed_doc::{CatalystSignedDocument, Decode, Decoder, DocumentRef, KidUri, Metadata};
11+
use catalyst_signed_doc::{CatalystSignedDocument, Decode, Decoder, KidUri, Metadata};
1212
use clap::Parser;
1313
use coset::{iana::CoapContentFormat, CborSerializable};
1414
use ed25519_dalek::{ed25519::signature::Signer, pkcs8::DecodePrivateKey};
@@ -65,11 +65,6 @@ fn encode_cbor_uuid(uuid: &uuid::Uuid) -> coset::cbor::Value {
6565
)
6666
}
6767

68-
#[allow(clippy::indexing_slicing)]
69-
fn _decode_cbor_document_ref(val: &coset::cbor::Value) -> anyhow::Result<DocumentRef> {
70-
DocumentRef::try_from(val)
71-
}
72-
7368
impl Cli {
7469
fn exec(self) -> anyhow::Result<()> {
7570
match self {

0 commit comments

Comments
 (0)