feat: libs #3
Annotations
4 warnings
[clippy] atrium-libs/src/identity/did.rs#L31:
atrium-libs/src/identity/did.rs#L31
warning: unused variable: `force_refresh`
--> atrium-libs/src/identity/did.rs:31:40
|
31 | async fn resolve(&self, did: &str, force_refresh: bool) -> Result<Option<DidDocument>> {
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_force_refresh`
|
= note: `#[warn(unused_variables)]` on by default
|
[clippy] atrium-libs/src/common_web/did_doc.rs#L48:
atrium-libs/src/common_web/did_doc.rs#L48
warning: multiple associated items are never used
--> atrium-libs/src/common_web/did_doc.rs:49:12
|
48 | impl DidDocument {
| ---------------- associated items in this implementation
49 | pub fn get_did(&self) -> String {
| ^^^^^^^
...
52 | pub fn get_handle(&self) -> Option<String> {
| ^^^^^^^^^^
...
61 | pub fn get_signing_key(&self) -> Option<(String, String)> {
| ^^^^^^^^^^^^^^^
...
64 | pub fn get_pds_endpoint(&self) -> Option<String> {
| ^^^^^^^^^^^^^^^^
...
67 | fn get_verification_material(&self, id: &str) -> Option<(String, String)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
83 | fn get_service_endpoint(&self, id: &str, r#type: &str) -> Option<String> {
| ^^^^^^^^^^^^^^^^^^^^
...
97 | fn validate_url(s: &str) -> Option<String> {
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
[clippy] atrium-libs/src/identity/did.rs#L48:
atrium-libs/src/identity/did.rs#L48
warning: function `validate_did_doc` is never used
--> atrium-libs/src/identity/did.rs:48:8
|
48 | pub fn validate_did_doc(did: &str, value: impl TryInto<DidDocument>) -> Result<DidDocument> {
| ^^^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/identity/did/error.rs#L5:
atrium-libs/src/identity/did/error.rs#L5
warning: variants `DidNotFound` and `PoorlyFormattedDidDocument` are never constructed
--> atrium-libs/src/identity/did/error.rs:15:5
|
5 | pub enum Error {
| ----- variants in this enum
...
15 | DidNotFound(String),
| ^^^^^^^^^^^
...
19 | PoorlyFormattedDidDocument,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|