Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Jan 16, 2024
1 parent 914cf9f commit b5d5d6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl StatusList2021Entry {
mod tests {
use super::*;

const STATUS_LIST_ENTRY_SAMPLE: &'static str = r#"
const STATUS_LIST_ENTRY_SAMPLE: &str = r#"
{
"id": "https://example.com/credentials/status/3#94567",
"type": "StatusList2021Entry",
Expand Down
4 changes: 2 additions & 2 deletions identity_document/src/document/core_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ mod tests {
let document: CoreDocument = document();

// Access methods by index.
assert_eq!(document.methods(None).get(0).unwrap().id().to_string(), "did:example:1234#key-1");
assert_eq!(document.methods(None).first().unwrap().id().to_string(), "did:example:1234#key-1");
assert_eq!(document.methods(None).get(2).unwrap().id().to_string(), "did:example:1234#key-3");
}

Expand All @@ -1180,7 +1180,7 @@ mod tests {
// Authentication
let authentication: Vec<&VerificationMethod> = document.methods(Some(MethodScope::authentication()));
assert_eq!(
authentication.get(0).unwrap().id().to_string(),
authentication.first().unwrap().id().to_string(),
"did:example:1234#auth-key"
);
assert_eq!(
Expand Down
1 change: 0 additions & 1 deletion identity_stronghold/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ mod stronghold_key_id;
mod tests;

pub use stronghold_jwk_storage::*;
pub use stronghold_key_id::*;

0 comments on commit b5d5d6f

Please sign in to comment.