Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jwt-compact requirement from 0.7.0 to 0.8.0 #17

Closed
wants to merge 1 commit into from

Update jwt-compact requirement from 0.7.0 to 0.8.0

a75454e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Update jwt-compact requirement from 0.7.0 to 0.8.0 #17

Update jwt-compact requirement from 0.7.0 to 0.8.0
a75454e
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Mar 26, 2024 in 0s

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) {
| ^^^^^^^^^^^^^^^^^^