Skip to content

feat: implement detached payload support #112

feat: implement detached payload support

feat: implement detached payload support #112

GitHub Actions / clippy failed Apr 13, 2024 in 1s

clippy

55 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 55
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0-beta.7 (6fd191292 2024-04-12)
  • cargo 1.78.0-beta.7 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (6fd1912 2024-04-12)

Annotations

Check failure on line 42 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
  --> src/lib.rs:42:5
   |
42 | use alloc::string::String;
   |     ^^^^^^^^^^^^^^^^^^^^^
  --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
   |
   = note: the item `String` is already defined here

Check failure on line 1 in src/policy/standard.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `ToString` is imported redundantly

error: the item `ToString` is imported redundantly
 --> src/policy/standard.rs:1:29
  |
1 | use alloc::string::{String, ToString};
  |                             ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `ToString` is already defined here

Check failure on line 1 in src/policy/standard.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/policy/standard.rs:1:21
  |
1 | use alloc::string::{String, ToString};
  |                     ^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jws/verify.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jws/verify.rs:1:5
  |
1 | use alloc::vec::Vec;
  |     ^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 5 in src/jws.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jws.rs:5:42
  |
5 | use alloc::{format, string::String, vec, vec::Vec};
  |                                          ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 5 in src/jws.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jws.rs:5:21
  |
5 | use alloc::{format, string::String, vec, vec::Vec};
  |                     ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/verifier.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `ToOwned` is imported redundantly

error: the item `ToOwned` is imported redundantly
 --> src/jwk/verifier.rs:1:5
  |
1 | use alloc::borrow::ToOwned;
  |     ^^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `ToOwned` is already defined here

Check failure on line 1 in src/jwk/thumbprint.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/thumbprint.rs:1:52
  |
1 | use alloc::{collections::BTreeMap, string::String, vec::Vec};
  |                                                    ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 1 in src/jwk/thumbprint.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/thumbprint.rs:1:36
  |
1 | use alloc::{collections::BTreeMap, string::String, vec::Vec};
  |                                    ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/signer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/signer.rs:1:46
  |
1 | use alloc::{borrow::ToOwned, string::String, vec::Vec};
  |                                              ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 1 in src/jwk/signer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/signer.rs:1:30
  |
1 | use alloc::{borrow::ToOwned, string::String, vec::Vec};
  |                              ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/signer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `ToOwned` is imported redundantly

error: the item `ToOwned` is imported redundantly
 --> src/jwk/signer.rs:1:13
  |
1 | use alloc::{borrow::ToOwned, string::String, vec::Vec};
  |             ^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `ToOwned` is already defined here

Check failure on line 1 in src/jwk/serde_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/serde_impl.rs:1:5
  |
1 | use alloc::vec::Vec;
  |     ^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 1 in src/jwk/public.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/public.rs:1:5
  |
1 | use alloc::string::String;
  |     ^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/private.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/private.rs:1:25
  |
1 | use alloc::{boxed::Box, string::String};
  |                         ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/private.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Box` is imported redundantly

error: the item `Box` is imported redundantly
 --> src/jwk/private.rs:1:13
  |
1 | use alloc::{boxed::Box, string::String};
  |             ^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Box` is already defined here

Check failure on line 1 in src/jwk/key_use.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/key_use.rs:1:5
  |
1 | use alloc::string::String;
  |     ^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/key_ops.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/key_ops.rs:1:5
  |
1 | use alloc::string::String;
  |     ^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 1 in src/jwk/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/builder.rs:1:29
  |
1 | use alloc::{string::String, vec::Vec};
  |                             ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 1 in src/jwk/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/builder.rs:1:13
  |
1 | use alloc::{string::String, vec::Vec};
  |             ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 30 in src/jwk/asymmetric.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary qualification

error: unnecessary qualification
  --> src/jwk/asymmetric.rs:30:43
   |
30 |         super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new(x))
   |                                           ^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove the unnecessary path segments
   |
30 -         super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new(x))
30 +         super::JsonWebKeyType::Asymmetric(Box::new(x))
   |

Check failure on line 1 in src/jwk/asymmetric.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/asymmetric.rs:1:5
  |
1 | use alloc::string::String;
  |     ^^^^^^^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 5 in src/jwk/symmetric.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/symmetric.rs:5:29
  |
5 | use alloc::{string::String, vec::Vec};
  |                             ^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check failure on line 5 in src/jwk/symmetric.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

error: the item `String` is imported redundantly
 --> src/jwk/symmetric.rs:5:13
  |
5 | use alloc::{string::String, vec::Vec};
  |             ^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check failure on line 3 in src/jwk/symmetric/hmac.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

error: the item `Vec` is imported redundantly
 --> src/jwk/symmetric/hmac.rs:3:5
  |
3 | use alloc::vec::Vec;
  |     ^^^^^^^^^^^^^^^
 --> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here