Skip to content

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend. #88

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend.

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend. #88

Triggered via pull request June 20, 2024 17:17
Status Failure
Total duration 2m 0s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 111 warnings
docs for function returning `Result` missing `# Errors` section: src/token/mod.rs#L288
error: docs for function returning `Result` missing `# Errors` section --> src/token/mod.rs:288:5 | 288 | / fn sign( 289 | | key: &CoseKey, 290 | | target: &[u8], 291 | | unprotected_header: &Header, 292 | | protected_header: &Header, 293 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc = note: `#[deny(clippy::missing_errors_doc)]` implied by `#[deny(clippy::pedantic)]`
you seem to be trying to match on a boolean expression: src/token/crypto_impl/openssl.rs#L452
error: you seem to be trying to match on a boolean expression --> src/token/crypto_impl/openssl.rs:452:45 | 452 | .and_then(|verification_successful| match verification_successful { | _____________________________________________^ 453 | | true => Ok(()), 454 | | false => Err(CoseCipherError::VerificationFailure), 455 | | }) | |_________^ help: consider using an `if`/`else` expression: `if verification_successful { Ok(()) } else { Err(CoseCipherError::VerificationFailure) }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool = note: `#[deny(clippy::match_bool)]` implied by `#[deny(clippy::pedantic)]`
explicit `deref` method call: src/token/crypto_impl/openssl.rs#L391
error: explicit `deref` method call --> src/token/crypto_impl/openssl.rs:391:9 | 391 | / PKey::from_ec_key(private_key) 392 | | .map_err(CoseOpensslCipherError::from)? 393 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods = note: `#[deny(clippy::explicit_deref_methods)]` implied by `#[deny(clippy::pedantic)]` help: try | 391 ~ &*PKey::from_ec_key(private_key) 392 ~ .map_err(CoseOpensslCipherError::from)?, |
this function has too many lines (118/100): src/token/crypto_impl/openssl.rs#L111
error: this function has too many lines (118/100) --> src/token/crypto_impl/openssl.rs:111:5 | 111 | / fn set_headers<RNG: RngCore + CryptoRng>( 112 | | key: &CoseKey, 113 | | unprotected_header: &mut Header, 114 | | protected_header: &mut Header, ... | 263 | | } 264 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines = note: `#[deny(clippy::too_many_lines)]` implied by `#[deny(clippy::pedantic)]`
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ERROR_URI)` | ::: src/endpoints/token_req/mod.rs:851:13 | 851 | / cbor_map_vec! { 852 | | token::ERROR => Some(error), 853 | | token::ERROR_DESCRIPTION => self.description.as_ref(), 854 | | token::ERROR_URI => self.uri.as_ref() 855 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ERROR_DESCRIPTION)` | ::: src/endpoints/token_req/mod.rs:851:13 | 851 | / cbor_map_vec! { 852 | | token::ERROR => Some(error), 853 | | token::ERROR_DESCRIPTION => self.description.as_ref(), 854 | | token::ERROR_URI => self.uri.as_ref() 855 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ERROR)` | ::: src/endpoints/token_req/mod.rs:851:13 | 851 | / cbor_map_vec! { 852 | | token::ERROR => Some(error), 853 | | token::ERROR_DESCRIPTION => self.description.as_ref(), 854 | | token::ERROR_URI => self.uri.as_ref() 855 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::RS_CNF)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ACE_PROFILE)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::REFRESH_TOKEN)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::TOKEN_TYPE)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::SCOPE)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::CNF)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(introspection::ISSUED_AT)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::EXPIRES_IN)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ACCESS_TOKEN)` | ::: src/endpoints/token_req/mod.rs:790:13 | 790 | / ... cbor_map_vec! { 791 | | ... token::ACCESS_TOKEN => Some(Value::Bytes(self.access_token.clone())), 792 | | ... token::EXPIRES_IN => self.expires_in, 793 | | ... introspection::ISSUED_AT => self.issued_at.as_ref().map(|x| x.clone().to_cbor_value().expect("serialization of issued_at failed... ... | 799 | | ... token::RS_CNF => self.rs_cnf.as_ref().map(ToCborMap::to_ciborium_value) 800 | | ... } | |_______- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::CNONCE)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::ACE_PROFILE)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::GRANT_TYPE)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::REDIRECT_URI)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::CLIENT_ID)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::SCOPE)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::AUDIENCE)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(token::REQ_CNF)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(introspection::ISSUER)` | ::: src/endpoints/token_req/mod.rs:740:13 | 740 | / cbor_map_vec! { 741 | | introspection::ISSUER => self.issuer.as_ref(), 742 | | token::REQ_CNF => self.req_cnf.as_ref().map(ToCborMap::to_ciborium_value), 743 | | token::AUDIENCE => self.audience.as_ref(), ... | 749 | | token::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 750 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(creation_hint::CNONCE)` | ::: src/endpoints/creation_hint/mod.rs:144:13 | 144 | / cbor_map_vec! { 145 | | creation_hint::AS => self.auth_server.as_ref(), 146 | | creation_hint::KID => self.kid.as_ref(), 147 | | creation_hint::AUDIENCE => self.audience.as_ref(), 148 | | creation_hint::SCOPE => self.scope.as_ref(), 149 | | creation_hint::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 150 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(creation_hint::SCOPE)` | ::: src/endpoints/creation_hint/mod.rs:144:13 | 144 | / cbor_map_vec! { 145 | | creation_hint::AS => self.auth_server.as_ref(), 146 | | creation_hint::KID => self.kid.as_ref(), 147 | | creation_hint::AUDIENCE => self.audience.as_ref(), 148 | | creation_hint::SCOPE => self.scope.as_ref(), 149 | | creation_hint::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 150 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(creation_hint::AUDIENCE)` | ::: src/endpoints/creation_hint/mod.rs:144:13 | 144 | / cbor_map_vec! { 145 | | creation_hint::AS => self.auth_server.as_ref(), 146 | | creation_hint::KID => self.kid.as_ref(), 147 | | creation_hint::AUDIENCE => self.audience.as_ref(), 148 | | creation_hint::SCOPE => self.scope.as_ref(), 149 | | creation_hint::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 150 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(creation_hint::KID)` | ::: src/endpoints/creation_hint/mod.rs:144:13 | 144 | / cbor_map_vec! { 145 | | creation_hint::AS => self.auth_server.as_ref(), 146 | | creation_hint::KID => self.kid.as_ref(), 147 | | creation_hint::AUDIENCE => self.audience.as_ref(), 148 | | creation_hint::SCOPE => self.scope.as_ref(), 149 | | creation_hint::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 150 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
casting `u8` to `i128` may become silently lossy if you later change the type: src/common/cbor_map/mod.rs#L93
error: casting `u8` to `i128` may become silently lossy if you later change the type --> src/common/cbor_map/mod.rs:93:18 | 93 | $key as i128, | ^^^^^^^^^^^^ help: try: `i128::from(creation_hint::AS)` | ::: src/endpoints/creation_hint/mod.rs:144:13 | 144 | / cbor_map_vec! { 145 | | creation_hint::AS => self.auth_server.as_ref(), 146 | | creation_hint::KID => self.kid.as_ref(), 147 | | creation_hint::AUDIENCE => self.audience.as_ref(), 148 | | creation_hint::SCOPE => self.scope.as_ref(), 149 | | creation_hint::CNONCE => self.client_nonce.as_ref().map(|v| Value::Bytes(v.clone())) 150 | | } | |_____________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless note: the lint level is defined here --> src/lib.rs:307:42 | 307 | #![deny(rustdoc::broken_intra_doc_links, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::cast_lossless)]` implied by `#[deny(clippy::pedantic)]` = note: this error originates in the macro `cbor_map_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
clippy_check
Clippy had exited with the 101 exit code
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L53
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:53:5 | 53 | Other(&'static str), | ^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L52
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:52:5 | 52 | TypeMismatch(Value), | ^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L51
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:51:5 | 51 | OpensslError(core::ffi::c_ulong), | ^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L48
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:48:5 | 48 | MissingEc2KeyParam(iana::Ec2KeyParameter), | ^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L47
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:47:5 | 47 | MissingKeyParam(iana::KeyParameter), | ^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L46
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:46:5 | 46 | InvalidKeyId(Vec<u8>), | ^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L45
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:45:5 | 45 | DuplicateHeaders(Vec<Label>), | ^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L44
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:44:5 | 44 | KeyTypeCurveMismatch(KeyType, iana::EllipticCurve), | ^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L43
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:43:5 | 43 | KeyTypeAlgorithmMismatch(KeyType, Algorithm), | ^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L42
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:42:5 | 42 | UnsupportedKeyOperation(iana::KeyOperation), | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L41
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:41:5 | 41 | UnsupportedAlgorithm(Algorithm), | ^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L40
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:40:5 | 40 | UnsupportedCurve(Option<iana::EllipticCurve>), | ^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/crypto_impl/openssl.rs#L39
warning: missing documentation for a variant --> src/token/crypto_impl/openssl.rs:39:5 | 39 | UnsupportedKeyType, | ^^^^^^^^^^^^^^^^^^
missing documentation for an enum: src/token/crypto_impl/openssl.rs#L38
warning: missing documentation for an enum --> src/token/crypto_impl/openssl.rs:38:1 | 38 | pub enum CoseOpensslCipherError { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a module: src/token/crypto_impl/mod.rs#L17
warning: missing documentation for a module --> src/token/crypto_impl/mod.rs:17:1 | 17 | pub mod openssl; | ^^^^^^^^^^^^^^^ | note: the lint level is defined here --> src/lib.rs:308:9 | 308 | #![warn(missing_docs, rustdoc::missing_crate_level_docs)] | ^^^^^^^^^^^^
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L505
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:505:9 | 505 | / &BigNum::from_slice(y) 506 | | .map_err(CoseOpensslCipherError::from)? 507 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 505 ~ BigNum::from_slice(y) 506 + .map_err(CoseOpensslCipherError::from)? 507 ~ .deref(), |
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L502
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:502:9 | 502 | / &BigNum::from_slice(x) 503 | | .map_err(CoseOpensslCipherError::from)? 504 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 502 ~ BigNum::from_slice(x) 503 + .map_err(CoseOpensslCipherError::from)? 504 ~ .deref(), |
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L501
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:501:9 | 501 | &group, | ^^^^^^ help: change this to: `group` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
called `map(..).flatten()` on `Option`: src/token/crypto_impl/openssl.rs#L494
warning: called `map(..).flatten()` on `Option` --> src/token/crypto_impl/openssl.rs:494:10 | 494 | .map(Value::as_bytes) | __________^ 495 | | .flatten() | |__________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(Value::as_bytes)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
called `map(..).flatten()` on `Option`: src/token/crypto_impl/openssl.rs#L488
warning: called `map(..).flatten()` on `Option` --> src/token/crypto_impl/openssl.rs:488:10 | 488 | .map(Value::as_bytes) | __________^ 489 | | .flatten() | |__________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(Value::as_bytes)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L473
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:473:9 | 473 | / &BigNum::from_slice(d) 474 | | .map_err(CoseOpensslCipherError::from)? 475 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 473 ~ BigNum::from_slice(d) 474 + .map_err(CoseOpensslCipherError::from)? 475 ~ .deref(), |
called `map(..).flatten()` on `Option`: src/token/crypto_impl/openssl.rs#L465
warning: called `map(..).flatten()` on `Option` --> src/token/crypto_impl/openssl.rs:465:10 | 465 | .map(Value::as_bytes) | __________^ 466 | | .flatten() | |__________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(Value::as_bytes)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten = note: `#[warn(clippy::map_flatten)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L434
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:434:53 | 434 | let public_key = cose_ec2_to_ec_public_key(key, &group).map_err(CoseCipherError::from)?; | ^^^^^^ help: change this to: `group` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this function has too many arguments (9/7): src/token/crypto_impl/openssl.rs#L423
warning: this function has too many arguments (9/7) --> src/token/crypto_impl/openssl.rs:423:1 | 423 | / fn verify_ecdsa<const KS: usize>( 424 | | group: &EcGroup, 425 | | hash: MessageDigest, 426 | | key: &CoseKey, ... | 432 | | protected_signature_header: Option<&ProtectedHeader>, 433 | | ) -> Result<(), CoseCipherError<CoseOpensslCipherError>> { | |________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/token/crypto_impl/openssl.rs#L387
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/crypto_impl/openssl.rs:387:55 | 387 | let private_key = cose_ec2_to_ec_private_key(key, &group).map_err(CoseCipherError::from)?; | ^^^^^^ help: change this to: `group` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
assigning the result of `Clone::clone()` may be inefficient: src/token/crypto_impl/openssl.rs#L256
warning: assigning the result of `Clone::clone()` may be inefficient --> src/token/crypto_impl/openssl.rs:256:21 | 256 | unprotected_header.key_id = key.key_id.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `unprotected_header.key_id.clone_from(&key.key_id)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
using `clone` on type `EllipticCurve` which implements the `Copy` trait: src/token/crypto_impl/openssl.rs#L180
warning: using `clone` on type `EllipticCurve` which implements the `Copy` trait --> src/token/crypto_impl/openssl.rs:180:33 | 180 | ... v.clone(), | ^^^^^^^^^ help: try removing the `clone` call: `v` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
you are explicitly cloning with `.map()`: src/token/crypto_impl/openssl.rs#L125
warning: you are explicitly cloning with `.map()` --> src/token/crypto_impl/openssl.rs:125:21 | 125 | / duplicate_header_fields 126 | | .into_iter() 127 | | .map(Label::clone) | |__________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone = note: `#[warn(clippy::map_clone)]` on by default help: consider calling the dedicated `cloned` method | 125 ~ duplicate_header_fields 126 + .into_iter().cloned() |
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: src/token/crypto_impl/openssl.rs#L98
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> src/token/crypto_impl/openssl.rs:98:54 | 98 | fn find_param_by_label<'a>(label: &Label, param_vec: &'a Vec<(Label, Value)>) -> Option<&'a Value> { | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&'a [(Label, Value)]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `#[warn(clippy::ptr_arg)]` on by default
unneeded `return` statement: src/token/crypto_impl/openssl.rs#L95
warning: unneeded `return` statement --> src/token/crypto_impl/openssl.rs:95:5 | 95 | return header_bucket_fields; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 95 - return header_bucket_fields; 95 + header_bucket_fields |
duplicated attribute: src/token/crypto_impl/openssl.rs#L11
warning: duplicated attribute --> src/token/crypto_impl/openssl.rs:11:8 | 11 | #![cfg(feature = "openssl")] | ^^^^^^^^^^^^^^^^^^^ | note: first defined here --> src/token/crypto_impl/mod.rs:16:7 | 16 | #[cfg(feature = "openssl")] | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute --> src/token/crypto_impl/openssl.rs:11:8 | 11 | #![cfg(feature = "openssl")] | ^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes = note: `#[warn(clippy::duplicated_attributes)]` on by default
unused variable: `protected_signature_header`: src/token/crypto_impl/openssl.rs#L432
warning: unused variable: `protected_signature_header` --> src/token/crypto_impl/openssl.rs:432:5 | 432 | protected_signature_header: Option<&ProtectedHeader>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected_signature_header`
Check (no_std)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check (no_std)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
unused variable: `unprotected_signature_header`: src/token/crypto_impl/openssl.rs#L431
warning: unused variable: `unprotected_signature_header` --> src/token/crypto_impl/openssl.rs:431:5 | 431 | unprotected_signature_header: Option<&Header>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected_signature_header`
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unused variable: `protected_header`: src/token/crypto_impl/openssl.rs#L430
warning: unused variable: `protected_header` --> src/token/crypto_impl/openssl.rs:430:5 | 430 | protected_header: &ProtectedHeader, | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected_header`
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unused variable: `unprotected_header`: src/token/crypto_impl/openssl.rs#L429
warning: unused variable: `unprotected_header` --> src/token/crypto_impl/openssl.rs:429:5 | 429 | unprotected_header: &Header, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected_header`
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unused variable: `protected_header`: src/token/crypto_impl/openssl.rs#L385
warning: unused variable: `protected_header` --> src/token/crypto_impl/openssl.rs:385:5 | 385 | protected_header: &Header, | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected_header`
unused variable: `unprotected_header`: src/token/crypto_impl/openssl.rs#L384
warning: unused variable: `unprotected_header` --> src/token/crypto_impl/openssl.rs:384:5 | 384 | unprotected_header: &Header, | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected_header`
variable does not need to be mutable: src/token/crypto_impl/openssl.rs#L205
warning: variable does not need to be mutable --> src/token/crypto_impl/openssl.rs:205:21 | 205 | let mut algorithm = match algorithm { | ----^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `e`: src/token/crypto_impl/openssl.rs#L161
warning: unused variable: `e` --> src/token/crypto_impl/openssl.rs:161:47 | 161 | i64::try_from(v).map_err(|e| { | ^ help: if this is intentional, prefix it with an underscore: `_e` | = note: `#[warn(unused_variables)]` on by default
unused import: `CoseKeyBuilder`: src/token/crypto_impl/openssl.rs#L22
warning: unused import: `CoseKeyBuilder` --> src/token/crypto_impl/openssl.rs:22:31 | 22 | iana, Algorithm, CoseKey, CoseKeyBuilder, Header, KeyType, Label, ProtectedHeader, | ^^^^^^^^^^^^^^
unused import: `Integer`: src/token/crypto_impl/openssl.rs#L18
warning: unused import: `Integer` --> src/token/crypto_impl/openssl.rs:18:23 | 18 | use ciborium::value::{Integer, Value}; | ^^^^^^^
unused import: `alloc::string::String`: src/token/crypto_impl/openssl.rs#L16
warning: unused import: `alloc::string::String` --> src/token/crypto_impl/openssl.rs:16:5 | 16 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Check: src/token/crypto_impl/openssl.rs#L16
unused import: `alloc::string::String`
Check: src/token/crypto_impl/openssl.rs#L18
unused import: `Integer`
Check: src/token/crypto_impl/openssl.rs#L22
unused import: `CoseKeyBuilder`
Check: src/token/crypto_impl/openssl.rs#L161
unused variable: `e`
Check: src/token/crypto_impl/openssl.rs#L205
variable does not need to be mutable
Check: src/token/crypto_impl/openssl.rs#L384
unused variable: `unprotected_header`
Check: src/token/crypto_impl/openssl.rs#L385
unused variable: `protected_header`
Check: src/token/crypto_impl/openssl.rs#L429
unused variable: `unprotected_header`
Check: src/token/crypto_impl/openssl.rs#L430
unused variable: `protected_header`
Check: src/token/crypto_impl/openssl.rs#L431
unused variable: `unprotected_signature_header`
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
Test Suite (no_std)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test Suite (no_std)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test Suite
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite: src/token/crypto_impl/openssl.rs#L16
unused import: `alloc::string::String`
Test Suite: src/token/crypto_impl/openssl.rs#L18
unused import: `Integer`
Test Suite: src/token/crypto_impl/openssl.rs#L22
unused import: `CoseKeyBuilder`
Test Suite: src/token/crypto_impl/openssl.rs#L161
unused variable: `e`
Test Suite: src/token/crypto_impl/openssl.rs#L205
variable does not need to be mutable
Test Suite: src/token/crypto_impl/openssl.rs#L384
unused variable: `unprotected_header`
Test Suite: src/token/crypto_impl/openssl.rs#L385
unused variable: `protected_header`
Test Suite: src/token/crypto_impl/openssl.rs#L429
unused variable: `unprotected_header`
Test Suite: src/token/crypto_impl/openssl.rs#L430
unused variable: `protected_header`
Test Suite: src/token/crypto_impl/openssl.rs#L431
unused variable: `unprotected_signature_header`
test_coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/[email protected], coverallsapp/github-action@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test_coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_coverage: src/token/crypto_impl/openssl.rs#L16
unused import: `alloc::string::String`
test_coverage: src/token/crypto_impl/openssl.rs#L18
unused import: `Integer`
test_coverage: src/token/crypto_impl/openssl.rs#L22
unused import: `CoseKeyBuilder`
test_coverage: src/token/crypto_impl/openssl.rs#L161
unused variable: `e`
test_coverage: src/token/crypto_impl/openssl.rs#L205
variable does not need to be mutable
test_coverage: src/token/crypto_impl/openssl.rs#L384
unused variable: `unprotected_header`
test_coverage: src/token/crypto_impl/openssl.rs#L385
unused variable: `protected_header`
test_coverage: src/token/crypto_impl/openssl.rs#L429
unused variable: `unprotected_header`
test_coverage: src/token/crypto_impl/openssl.rs#L430
unused variable: `protected_header`
test_coverage: src/token/crypto_impl/openssl.rs#L431
unused variable: `unprotected_signature_header`
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/