Skip to content

feat: libs

feat: libs #221

GitHub Actions / clippy failed May 15, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (4)

atrium-libs/src/identity/did.rs|31 col 40| 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> {
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _force_refresh
|
= note: #[warn(unused_variables)] on by default
atrium-libs/src/common_web/did_doc.rs|48 col 1| 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 {
| ^^^^^^^^^^
...
61 | pub fn get_signing_key(&self) -> Option<(String, String)> {
| ^^^^^^^^^^^^^^^
...
64 | pub fn get_pds_endpoint(&self) -> Option {
| ^^^^^^^^^^^^^^^^
...
67 | fn get_verification_material(&self, id: &str) -> Option<(String, String)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
83 | fn get_service_endpoint(&self, id: &str, r#type: &str) -> Option {
| ^^^^^^^^^^^^^^^^^^^^
...
97 | fn validate_url(s: &str) -> Option {
| ^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
atrium-libs/src/identity/did.rs|48 col 8| 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) -> Result {
| ^^^^^^^^^^^^^^^^
atrium-libs/src/identity/did/error.rs|5 col 10| 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

Filtered Findings (0)

Annotations

Check warning on line 31 in atrium-libs/src/identity/did.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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
Raw output
atrium-libs/src/identity/did.rs:31:40:w: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


__END__

Check warning on line 48 in atrium-libs/src/common_web/did_doc.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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
Raw output
atrium-libs/src/common_web/did_doc.rs:48:1:w: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


__END__

Check warning on line 48 in atrium-libs/src/identity/did.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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> {
   |        ^^^^^^^^^^^^^^^^
Raw output
atrium-libs/src/identity/did.rs:48:8:w: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> {
   |        ^^^^^^^^^^^^^^^^


__END__

Check warning on line 5 in atrium-libs/src/identity/did/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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
Raw output
atrium-libs/src/identity/did/error.rs:5:10:w: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


__END__