Skip to content

fix: remove PartialEq implementation from JsonWebKey #106

fix: remove PartialEq implementation from JsonWebKey

fix: remove PartialEq implementation from JsonWebKey #106

Triggered via pull request April 4, 2024 18:51
Status Failure
Total duration 1m 20s
Artifacts

test.yml

on: pull_request
ubuntu / stable / minimal-versions
45s
ubuntu / stable / minimal-versions
ubuntu / stable / coverage
36s
ubuntu / stable / coverage
Matrix: os-check
Matrix: required
Fit to window
Zoom out
Zoom in

Annotations

62 errors
the item `String` is imported redundantly: src/lib.rs#L42
error: the item `String` is imported redundantly --> src/lib.rs:42:5 | 42 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToString` is imported redundantly: src/policy/standard.rs#L1
error: the item `ToString` is imported redundantly --> src/policy/standard.rs:1:29 | 1 | use alloc::string::{String, ToString}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToString` is already defined here
the item `String` is imported redundantly: src/policy/standard.rs#L1
error: the item `String` is imported redundantly --> src/policy/standard.rs:1:21 | 1 | use alloc::string::{String, ToString}; | ^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jws/verify.rs#L1
error: the item `Vec` is imported redundantly --> src/jws/verify.rs:1:5 | 1 | use alloc::vec::Vec; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `Vec` is imported redundantly: src/jws.rs#L5
error: the item `Vec` is imported redundantly --> src/jws.rs:5:42 | 5 | use alloc::{format, string::String, vec, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jws.rs#L5
error: the item `String` is imported redundantly --> src/jws.rs:5:21 | 5 | use alloc::{format, string::String, vec, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToOwned` is imported redundantly: src/jwk/verifier.rs#L1
error: the item `ToOwned` is imported redundantly --> src/jwk/verifier.rs:1:5 | 1 | use alloc::borrow::ToOwned; | ^^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToOwned` is already defined here
the item `Vec` is imported redundantly: src/jwk/thumbprint.rs#L1
error: the item `Vec` is imported redundantly --> src/jwk/thumbprint.rs:1:52 | 1 | use alloc::{collections::BTreeMap, string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/thumbprint.rs#L1
error: the item `String` is imported redundantly --> src/jwk/thumbprint.rs:1:36 | 1 | use alloc::{collections::BTreeMap, string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jwk/signer.rs#L1
error: the item `Vec` is imported redundantly --> src/jwk/signer.rs:1:46 | 1 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/signer.rs#L1
error: the item `String` is imported redundantly --> src/jwk/signer.rs:1:30 | 1 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToOwned` is imported redundantly: src/jwk/signer.rs#L1
error: the item `ToOwned` is imported redundantly --> src/jwk/signer.rs:1:13 | 1 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToOwned` is already defined here
the item `Vec` is imported redundantly: src/jwk/serde_impl.rs#L1
error: the item `Vec` is imported redundantly --> src/jwk/serde_impl.rs:1:5 | 1 | use alloc::vec::Vec; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/public.rs#L1
error: the item `String` is imported redundantly --> src/jwk/public.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/jwk/private.rs#L1
error: the item `String` is imported redundantly --> src/jwk/private.rs:1:25 | 1 | use alloc::{boxed::Box, string::String}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Box` is imported redundantly: src/jwk/private.rs#L1
error: the item `Box` is imported redundantly --> src/jwk/private.rs:1:13 | 1 | use alloc::{boxed::Box, string::String}; | ^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
the item `String` is imported redundantly: src/jwk/key_use.rs#L1
error: the item `String` is imported redundantly --> src/jwk/key_use.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/jwk/key_ops.rs#L1
error: the item `String` is imported redundantly --> src/jwk/key_ops.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jwk/builder.rs#L1
error: the item `Vec` is imported redundantly --> src/jwk/builder.rs:1:29 | 1 | use alloc::{string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/builder.rs#L1
error: the item `String` is imported redundantly --> src/jwk/builder.rs:1:13 | 1 | use alloc::{string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
unnecessary qualification: src/jwk/asymmetric.rs#L30
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)) |
the item `String` is imported redundantly: src/jwk/asymmetric.rs#L1
error: the item `String` is imported redundantly --> src/jwk/asymmetric.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jwk/symmetric.rs#L5
error: the item `Vec` is imported redundantly --> src/jwk/symmetric.rs:5:29 | 5 | use alloc::{string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/symmetric.rs#L5
error: the item `String` is imported redundantly --> src/jwk/symmetric.rs:5:13 | 5 | use alloc::{string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jwk/symmetric/hmac.rs#L3
error: the item `Vec` is imported redundantly --> src/jwk/symmetric/hmac.rs:3:5 | 3 | use alloc::vec::Vec; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/rsa.rs#L5
error: the item `String` is imported redundantly --> src/jwk/rsa.rs:5:25 | 5 | use alloc::{boxed::Box, string::String}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Box` is imported redundantly: src/jwk/rsa.rs#L5
error: the item `Box` is imported redundantly --> src/jwk/rsa.rs:5:13 | 5 | use alloc::{boxed::Box, string::String}; | ^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
the item `Vec` is imported redundantly: src/jwk/rsa/signer_verifier.rs#L1
error: the item `Vec` is imported redundantly --> src/jwk/rsa/signer_verifier.rs:1:5 | 1 | use alloc::vec::Vec; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk/okp.rs#L7
error: the item `String` is imported redundantly --> src/jwk/okp.rs:7:5 | 7 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/jwk/okp/curve25519.rs#L5
error: the item `String` is imported redundantly --> src/jwk/okp/curve25519.rs:5:5 | 5 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/jwk/okp/curve25519/ed25519.rs#L1
error: the item `String` is imported redundantly --> src/jwk/okp/curve25519/ed25519.rs:1:46 | 1 | use alloc::{borrow::Cow, boxed::Box, format, string::String}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Box` is imported redundantly: src/jwk/okp/curve25519/ed25519.rs#L1
error: the item `Box` is imported redundantly --> src/jwk/okp/curve25519/ed25519.rs:1:26 | 1 | use alloc::{borrow::Cow, boxed::Box, format, string::String}; | ^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
unnecessary qualification: src/jwk/ec.rs#L102
error: unnecessary qualification --> src/jwk/ec.rs:102:43 | 102 | super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new( | ^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | 102 - super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new( 102 + super::JsonWebKeyType::Asymmetric(Box::new( |
unnecessary qualification: src/jwk/ec.rs#L58
error: unnecessary qualification --> src/jwk/ec.rs:58:43 | 58 | super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new( | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D unused-qualifications` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_qualifications)]` help: remove the unnecessary path segments | 58 - super::JsonWebKeyType::Asymmetric(alloc::boxed::Box::new( 58 + super::JsonWebKeyType::Asymmetric(Box::new( |
the item `String` is imported redundantly: src/jwk/ec.rs#L8
error: the item `String` is imported redundantly --> src/jwk/ec.rs:8:21 | 8 | use alloc::{format, string::String}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/jwk.rs#L3
error: the item `Vec` is imported redundantly --> src/jwk.rs:3:46 | 3 | use alloc::{boxed::Box, string::String, vec, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/jwk.rs#L3
error: the item `String` is imported redundantly --> src/jwk.rs:3:25 | 3 | use alloc::{boxed::Box, string::String, vec, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Box` is imported redundantly: src/jwk.rs#L3
error: the item `Box` is imported redundantly --> src/jwk.rs:3:13 | 3 | use alloc::{boxed::Box, string::String, vec, vec::Vec}; | ^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
the item `String` is imported redundantly: src/jwa.rs#L14
error: the item `String` is imported redundantly --> src/jwa.rs:14:5 | 14 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToString` is imported redundantly: src/header/types.rs#L6
error: the item `ToString` is imported redundantly --> src/header/types.rs:6:22 | 6 | string::{String, ToString}, | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToString` is already defined here
the item `String` is imported redundantly: src/header/types.rs#L6
error: the item `String` is imported redundantly --> src/header/types.rs:6:14 | 6 | string::{String, ToString}, | ^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/header/parameters.rs#L4
error: the item `Vec` is imported redundantly --> src/header/parameters.rs:4:5 | 4 | vec::Vec, | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/header/parameters.rs#L3
error: the item `String` is imported redundantly --> src/header/parameters.rs:3:5 | 3 | string::String, | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/header/error.rs#L1
error: the item `String` is imported redundantly --> src/header/error.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/header/builder.rs#L4
error: the item `Vec` is imported redundantly --> src/header/builder.rs:4:5 | 4 | vec::Vec, | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/header/builder.rs#L3
error: the item `String` is imported redundantly --> src/header/builder.rs:3:5 | 3 | string::String, | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToString` is imported redundantly: src/header.rs#L7
error: the item `ToString` is imported redundantly --> src/header.rs:7:22 | 7 | string::{String, ToString}, | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToString` is already defined here
the item `String` is imported redundantly: src/header.rs#L7
error: the item `String` is imported redundantly --> src/header.rs:7:14 | 7 | string::{String, ToString}, | ^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/format/json_general.rs#L1
error: the item `Vec` is imported redundantly --> src/format/json_general.rs:1:34 | 1 | use alloc::{string::String, vec, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/format/json_general.rs#L1
error: the item `String` is imported redundantly --> src/format/json_general.rs:1:13 | 1 | use alloc::{string::String, vec, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `String` is imported redundantly: src/format/json_flattened.rs#L1
error: the item `String` is imported redundantly --> src/format/json_flattened.rs:1:5 | 1 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: src/format/compact.rs#L1
error: the item `Vec` is imported redundantly --> src/format/compact.rs:1:5 | 1 | use alloc::vec::Vec; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `Vec` is imported redundantly: src/base64_url.rs#L3
error: the item `Vec` is imported redundantly --> src/base64_url.rs:3:46 | 3 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: src/base64_url.rs#L3
error: the item `String` is imported redundantly --> src/base64_url.rs:3:30 | 3 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `ToOwned` is imported redundantly: src/base64_url.rs#L3
error: the item `ToOwned` is imported redundantly --> src/base64_url.rs:3:13 | 3 | use alloc::{borrow::ToOwned, string::String, vec::Vec}; | ^^^^^^^^^^^^^^^ --> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:125:13 | = note: the item `ToOwned` is already defined here | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
ubuntu / stable
Process completed with exit code 101.
ubuntu / beta
The job was canceled because "stable" failed.
ubuntu / beta
Process completed with exit code 101.
ubuntu / stable / coverage
Process completed with exit code 1.
macos-latest / stable
Process completed with exit code 101.
ubuntu / stable / minimal-versions
Process completed with exit code 101.
windows-latest / stable
Process completed with exit code 1.