Skip to content

feat(traits/authn): add log information #44

feat(traits/authn): add log information

feat(traits/authn): add log information #44

Triggered via push November 18, 2024 20:05
Status Failure
Total duration 3m 43s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 3 warnings
`<<Self as UserAuthenticator>::Challenger as Challenger>::Context` doesn't implement `std::fmt::Debug`: traits/authn/src/lib.rs#L112
error[E0277]: `<<Self as UserAuthenticator>::Challenger as Challenger>::Context` doesn't implement `std::fmt::Debug` --> traits/authn/src/lib.rs:112:85 | 112 | log::trace!(target: LOG_TARGET, "Check challenge for context ({:?}): {:?}", &cx, &challenge); | ^^^ `<<Self as UserAuthenticator>::Challenger as Challenger>::Context` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `<<Self as UserAuthenticator>::Challenger as Challenger>::Context`, which is required by `&<<Self as UserAuthenticator>::Challenger as Challenger>::Context: std::fmt::Debug` = note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `log::trace` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider further restricting the associated type | 101 | fn verify_user(&self, credential: &Self::Credential) -> Option<()> where <<Self as UserAuthenticator>::Challenger as Challenger>::Context: std::fmt::Debug { | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
`<<Self as Authenticator>::Challenger as Challenger>::Context` doesn't implement `std::fmt::Debug`: traits/authn/src/lib.rs#L80
error[E0277]: `<<Self as Authenticator>::Challenger as Challenger>::Context` doesn't implement `std::fmt::Debug` --> traits/authn/src/lib.rs:80:85 | 80 | log::trace!(target: LOG_TARGET, "Check challenge for context ({:?}): {:?}", &cx, &challenge); | ^^^ `<<Self as Authenticator>::Challenger as Challenger>::Context` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `<<Self as Authenticator>::Challenger as Challenger>::Context`, which is required by `&<<Self as Authenticator>::Challenger as Challenger>::Context: std::fmt::Debug` = note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `log::trace` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider further restricting the associated type | 69 | fn verify_device(attestation: Self::DeviceAttestation) -> Option<Self::Device> where <<Self as Authenticator>::Challenger as Challenger>::Context: std::fmt::Debug { | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
clippy
Clippy had exited with the 101 exit code
check
Process completed with exit code 101.
test
Process completed with exit code 101.
constants have by default a `'static` lifetime: traits/authn/src/lib.rs#L11
warning: constants have by default a `'static` lifetime --> traits/authn/src/lib.rs:11:20 | 11 | const LOG_TARGET: &'static str = "authn"; | -^^^^^^^---- help: consider removing `'static`: `&str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/