feat: libs #3
Annotations
1 error and 19 warnings
test
Process completed with exit code 101.
|
[clippy] atrium-libs/src/crypto/did.rs#L17:
atrium-libs/src/crypto/did.rs#L17
warning: unused variable: `jwt_alg`
--> atrium-libs/src/crypto/did.rs:17:20
|
17 | fn format_multikey(jwt_alg: JwtAlg, key: &[u8]) -> String {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_jwt_alg`
|
= note: `#[warn(unused_variables)]` on by default
|
[clippy] atrium-libs/src/crypto/did.rs#L17:
atrium-libs/src/crypto/did.rs#L17
warning: unused variable: `key`
--> atrium-libs/src/crypto/did.rs:17:37
|
17 | fn format_multikey(jwt_alg: JwtAlg, key: &[u8]) -> String {
| ^^^ help: if this is intentional, prefix it with an underscore: `_key`
|
[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`
|
[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/crypto.rs#L6:
atrium-libs/src/crypto.rs#L6
warning: constant `DID_KEY_PREFIX` is never used
--> atrium-libs/src/crypto.rs:6:7
|
6 | const DID_KEY_PREFIX: &str = "did:key:";
| ^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/crypto.rs#L9:
atrium-libs/src/crypto.rs#L9
warning: variants `P256` and `Secp256k1` are never constructed
--> atrium-libs/src/crypto.rs:10:5
|
9 | pub enum JwtAlg {
| ------ variants in this enum
10 | P256,
| ^^^^
11 | Secp256k1,
| ^^^^^^^^^
|
= note: `JwtAlg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
[clippy] atrium-libs/src/crypto/did.rs#L4:
atrium-libs/src/crypto/did.rs#L4
warning: function `parse_multikey` is never used
--> atrium-libs/src/crypto/did.rs:4:8
|
4 | pub fn parse_multikey(multikey: &str) -> Result<(JwtAlg, Vec<u8>)> {
| ^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/crypto/did.rs#L13:
atrium-libs/src/crypto/did.rs#L13
warning: function `format_did_key` is never used
--> atrium-libs/src/crypto/did.rs:13:8
|
13 | pub fn format_did_key(jwt_alg: JwtAlg, key: &[u8]) -> String {
| ^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/crypto/did.rs#L17:
atrium-libs/src/crypto/did.rs#L17
warning: function `format_multikey` is never used
--> atrium-libs/src/crypto/did.rs:17:4
|
17 | fn format_multikey(jwt_alg: JwtAlg, key: &[u8]) -> String {
| ^^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/crypto/error.rs#L4:
atrium-libs/src/crypto/error.rs#L4
warning: variant `UnsupportedMultikeyType` is never constructed
--> atrium-libs/src/crypto/error.rs:6:5
|
4 | pub enum Error {
| ----- variant in this enum
5 | #[error("Unsupported key type")]
6 | UnsupportedMultikeyType,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
[clippy] atrium-libs/src/crypto/error.rs#L11:
atrium-libs/src/crypto/error.rs#L11
warning: type alias `Result` is never used
--> atrium-libs/src/crypto/error.rs:11:10
|
11 | pub type Result<T> = std::result::Result<T, Error>;
| ^^^^^^
|
[clippy] atrium-libs/src/crypto/multibase.rs#L3:
atrium-libs/src/crypto/multibase.rs#L3
warning: function `multibase_to_bytes` is never used
--> atrium-libs/src/crypto/multibase.rs:3:8
|
3 | pub fn multibase_to_bytes(mb: &str) -> Result<Vec<u8>> {
| ^^^^^^^^^^^^^^^^^^
|
[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/atproto_data.rs#L8:
atrium-libs/src/identity/did/atproto_data.rs#L8
warning: variants `SigningKey`, `Handle`, and `Pds` are never constructed
--> atrium-libs/src/identity/did/atproto_data.rs:10:5
|
8 | pub enum Error {
| ----- variants in this enum
9 | #[error("Could not parse signing key from doc: {0:?}")]
10 | SigningKey(DidDocument),
| ^^^^^^^^^^
11 | #[error("Could not parse handle from doc: {0:?}")]
12 | Handle(DidDocument),
| ^^^^^^
13 | #[error("Could not parse pds from doc: {0:?}")]
14 | Pds(DidDocument),
| ^^^
|
= note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
[clippy] atrium-libs/src/identity/did/atproto_data.rs#L19:
atrium-libs/src/identity/did/atproto_data.rs#L19
warning: type alias `Result` is never used
--> atrium-libs/src/identity/did/atproto_data.rs:19:10
|
19 | pub type Result<T> = std::result::Result<T, Error>;
| ^^^^^^
|
[clippy] atrium-libs/src/identity/did/atproto_data.rs#L29:
atrium-libs/src/identity/did/atproto_data.rs#L29
warning: function `ensure_atproto_data` is never used
--> atrium-libs/src/identity/did/atproto_data.rs:29:8
|
29 | pub fn ensure_atproto_data(did_doc: &DidDocument) -> Result<AtprotoData> {
| ^^^^^^^^^^^^^^^^^^^
|
[clippy] atrium-libs/src/identity/did/atproto_data.rs#L40:
atrium-libs/src/identity/did/atproto_data.rs#L40
warning: function `get_key` is never used
--> atrium-libs/src/identity/did/atproto_data.rs:40:4
|
40 | fn get_key(did_doc: &DidDocument) -> Result<Option<String>> {
| ^^^^^^^
|
[clippy] atrium-libs/src/identity/did/atproto_data.rs#L48:
atrium-libs/src/identity/did/atproto_data.rs#L48
warning: function `get_did_key_from_multibase` is never used
--> atrium-libs/src/identity/did/atproto_data.rs:48:4
|
48 | fn get_did_key_from_multibase(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
[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
|