Skip to content

Commit

Permalink
fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 committed Oct 24, 2024
1 parent 37f154c commit 48d215b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/web5_cli/src/vcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use web5::{
};

#[derive(Subcommand, Debug)]
// We allow the warning because memory layout isn't important for the CLI options.
#[allow(clippy::large_enum_variant)]
pub enum Commands {
/// Creates a VC.
///
Expand Down Expand Up @@ -136,9 +138,9 @@ impl Commands {
let credential_schema = credential_schema.as_ref().map(|cs| {
serde_json::from_str(cs).expect("Error parsing credential schema JSON string")
});
let evidence = evidence.as_ref().map(|e| {
serde_json::from_str(e).expect("Error parsing evidence JSON string")
});
let evidence = evidence
.as_ref()
.map(|e| serde_json::from_str(e).expect("Error parsing evidence JSON string"));

let vc = VerifiableCredential::create(
issuer,
Expand All @@ -155,7 +157,6 @@ impl Commands {
credential_status,
credential_schema,
evidence,
..Default::default()
}),
)
.await
Expand Down

0 comments on commit 48d215b

Please sign in to comment.