Update jwt-compact requirement from 0.7.0 to 0.8.0 #17
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (4)
derive/src/lib.rs|41 col 14| warning: to_string
applied to a type that implements Display
in format!
args
--> derive/src/lib.rs:41:14
|
41 | ident.to_string()
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: #[warn(clippy::to_string_in_format_args)]
on by default
src/token_signer.rs|121 col 25| warning: use of deprecated associated function chrono::TimeDelta::seconds
: Use TimeDelta::try_seconds
instead
--> src/token_signer.rs:121:25
|
121 | #[builder(default = "TimeOptions::from_leeway(ChronoDuration::seconds(0))")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)]
on by default
src/token_signer.rs|273 col 20| error[E0308]: mismatched types
--> src/token_signer.rs:273:20
|
273 | .token(self.header.clone(), &token_claims, &self.signing_key)
| ----- ^^^^^^^^^^^^^^^^^^^ expected &Header<_>
, found Header
| |
| arguments to this method are incorrect
|
= note: expected reference &jwt_compact::Header<_>
found struct jwt_compact::Header<jwt_compact::Empty>
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jwt-compact-0.8.0/src/traits.rs:133:8
|
133 | fn token(
| ^^^^^
help: consider borrowing here
|
273 | .token(&self.header.clone(), &token_claims, &self.signing_key)
| +
src/validate.rs|24 col 29| warning: use of deprecated method jwt_compact::AlgorithmExt::validate_integrity
: Use .validator().validate()
for added flexibility
--> src/validate.rs:24:29
|
24 | match algorithm.validate_integrity::(&untrusted_token, verifying_key) {
| ^^^^^^^^^^^^^^^^^^