Skip to content

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

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. #92

Triggered via pull request June 29, 2024 23:47
Status Failure
Total duration 43s
Artifacts

check.yml

on: pull_request
Check
15s
Check
Check (no_std)
14s
Check (no_std)
Test Suite
24s
Test Suite
Test Suite (no_std)
24s
Test Suite (no_std)
Rustfmt
4s
Rustfmt
clippy_check
18s
clippy_check
test_coverage
33s
test_coverage
Fit to window
Zoom out
Zoom in

Annotations

95 errors and 221 warnings
it is more concise to loop over containers instead of using explicit iteration methods: src/token/mod.rs#L407
error: it is more concise to loop over containers instead of using explicit iteration methods --> src/token/mod.rs:407:29 | 407 | for (key, signature) in keys.into_iter() { | ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `keys` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop = note: `#[deny(clippy::explicit_into_iter_loop)]` implied by `#[deny(clippy::pedantic)]`
this match arm has an identical body to another arm: src/token/cose/sign/mod.rs#L226
error: this match arm has an identical body to another arm --> src/token/cose/sign/mod.rs:226:9 | 226 | v @ (Algorithm::Assigned(_)) => { | ^--------------------------- | | | _________help: try merging the arm patterns: `v @ (Algorithm::Assigned(_)) | v @ (Algorithm::PrivateUse(_) | Algorithm::Text(_))` | | 227 | | return Err(CoseCipherError::UnsupportedAlgorithm(v.clone())) 228 | | } | |_________^ | = help: or try changing either arm body note: other arm here --> src/token/cose/sign/mod.rs:231:9 | 231 | / v @ (Algorithm::PrivateUse(_) | Algorithm::Text(_)) => { 232 | | return Err(CoseCipherError::UnsupportedAlgorithm(v.clone())) 233 | | } | |_________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms = note: `#[deny(clippy::match_same_arms)]` implied by `#[deny(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/mod.rs#L144
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/mod.rs:144:5 | 144 | / fn verify_ecdsa( 145 | | &mut self, 146 | | alg: Algorithm, 147 | | key: &CoseEc2Key<'_, Self::Error>, 148 | | signature: &[u8], 149 | | target: &[u8], 150 | | ) -> Result<(), CoseCipherError<Self::Error>>; | |__________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/mod.rs#L88
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/mod.rs:88:5 | 88 | / fn sign_ecdsa( 89 | | &mut self, 90 | | alg: Algorithm, 91 | | key: &CoseEc2Key<'_, Self::Error>, 92 | | target: &[u8], 93 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign1.rs#L143
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign1.rs:143:5 | 143 | / fn try_verify_detached< 144 | | 'a, 145 | | 'b, 146 | | B: CoseSignCipher, ... | 155 | | aad: &mut CAP, 156 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign1.rs#L135
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign1.rs:135:5 | 135 | / fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 136 | | &self, 137 | | backend: &mut B, 138 | | key_provider: &mut CKP, 139 | | try_all_keys: bool, 140 | | aad: &mut CAP, 141 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign1.rs#L50
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign1.rs:50:5 | 50 | / fn try_sign_detached< 51 | | 'a, 52 | | 'b, 53 | | B: CoseSignCipher, ... | 63 | | aad: &mut CAP, 64 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign1.rs#L26
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign1.rs:26:5 | 26 | / fn try_sign<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 27 | | self, 28 | | backend: &mut B, 29 | | key_provider: &mut CKP, ... | 32 | | aad: &mut CAP, 33 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: src/token/cose/sign/sign.rs#L176
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> src/token/cose/sign/sign.rs:176:13 | 176 | / match self.verify_detached_signature( 177 | | sigindex, 178 | | payload, 179 | | aad.lookup_aad( ... | 198 | | } 199 | | } | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else help: try | 176 ~ if let Ok(()) = self.verify_detached_signature( 177 + sigindex, 178 + payload, 179 + aad.lookup_aad( 180 + Some(&self.signatures[sigindex].protected.header), 181 + Some(&self.signatures[sigindex].unprotected), 182 + ), 183 + |signature, toverify| { 184 + sign::try_verify( 185 + backend, 186 + key_provider, 187 + &self.signatures[sigindex].protected.header, 188 + &self.signatures[sigindex].unprotected, 189 + try_all_keys, 190 + signature, 191 + toverify, 192 + ) 193 + }, 194 + ) { return Ok(()) } else { 195 + // TODO debug logging? Allow debugging why each verification failed? 196 + } |
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: src/token/cose/sign/sign.rs#L132
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> src/token/cose/sign/sign.rs:132:13 | 132 | / match self.verify_signature( 133 | | sigindex, 134 | | aad.borrow_mut().lookup_aad( 135 | | Some(&self.signatures[sigindex].protected.header), ... | 153 | | } 154 | | } | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else = note: `#[deny(clippy::single_match_else)]` implied by `#[deny(clippy::pedantic)]` help: try | 132 ~ if let Ok(()) = self.verify_signature( 133 + sigindex, 134 + aad.borrow_mut().lookup_aad( 135 + Some(&self.signatures[sigindex].protected.header), 136 + Some(&self.signatures[sigindex].unprotected), 137 + ), 138 + |signature, toverify| { 139 + sign::try_verify( 140 + backend, 141 + key_provider, 142 + &self.signatures[sigindex].protected.header, 143 + &self.signatures[sigindex].unprotected, 144 + try_all_keys, 145 + signature, 146 + toverify, 147 + ) 148 + }, 149 + ) { return Ok(()) } else { 150 + // TODO debug logging? Allow debugging why each verification failed? 151 + } |
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign.rs#L107
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign.rs:107:5 | 107 | / fn try_verify_detached< 108 | | 'a, 109 | | 'b, 110 | | B: CoseSignCipher, ... | 119 | | aad: &mut CAP, 120 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign.rs#L99
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign.rs:99:5 | 99 | / fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 100 | | &self, 101 | | backend: &mut B, 102 | | key_provider: &mut CKP, 103 | | try_all_keys: bool, 104 | | aad: &mut CAP, 105 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign.rs#L19
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign.rs:19:5 | 19 | / fn try_add_sign_detached< 20 | | 'a, 21 | | 'b, 22 | | B: CoseSignCipher, ... | 31 | | aad: &mut CAP, 32 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/sign/sign.rs#L11
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/sign/sign.rs:11:5 | 11 | / fn try_add_sign<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 12 | | self, 13 | | backend: &mut B, 14 | | key_provider: &mut CKP, 15 | | sig: CoseSignature, 16 | | aad: &mut CAP, 17 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
called `map(<f>).unwrap_or(<a>)` on an `Option` value: src/token/cose/key.rs#L433
error: called `map(<f>).unwrap_or(<a>)` on an `Option` value --> src/token/cose/key.rs:433:9 | 433 | self.next().map(|v| *v).unwrap_or(&[] as &[u8]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or = note: `#[deny(clippy::map_unwrap_or)]` implied by `#[deny(clippy::pedantic)]` help: use `map_or(<a>, <f>)` instead | 433 - self.next().map(|v| *v).unwrap_or(&[] as &[u8]) 433 + self.next().map_or(&[] as &[u8], |v| *v) |
since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`: src/token/cose/key.rs#L425
error: since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>` --> src/token/cose/key.rs:425:34 | 425 | impl<'a> CoseAadProvider<'a> for &'a Option<&'a [u8]> { | ^^^^^^^^^^^^^^^^^^^^ help: try: `Option<&'a [u8]>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref = note: `#[deny(clippy::ref_option_ref)]` implied by `#[deny(clippy::pedantic)]`
calling `PhantomData::default()` is more clear than this expression: src/token/cose/key.rs#L323
error: calling `PhantomData::default()` is more clear than this expression --> src/token/cose/key.rs:323:34 | 323 | _backend_error_type: Default::default(), | ^^^^^^^^^^^^^^^^^^ help: try: `PhantomData::default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
calling `PhantomData::default()` is more clear than this expression: src/token/cose/key.rs#L282
error: calling `PhantomData::default()` is more clear than this expression --> src/token/cose/key.rs:282:34 | 282 | _backend_error_type: Default::default(), | ^^^^^^^^^^^^^^^^^^ help: try: `PhantomData::default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
calling `PhantomData::default()` is more clear than this expression: src/token/cose/key.rs#L200
error: calling `PhantomData::default()` is more clear than this expression --> src/token/cose/key.rs:200:34 | 200 | _backend_error_type: Default::default(), | ^^^^^^^^^^^^^^^^^^ help: try: `PhantomData::default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access = note: `#[deny(clippy::default_trait_access)]` implied by `#[deny(clippy::pedantic)]`
unnecessary boolean `not` operation: src/token/cose/header_util.rs#L61
error: unnecessary boolean `not` operation --> src/token/cose/header_util.rs:61:5 | 61 | / if !duplicate_header_fields.is_empty() { 62 | | Err(CoseCipherError::DuplicateHeaders( 63 | | duplicate_header_fields 64 | | .into_iter() ... | 69 | | Ok(()) 70 | | } | |_____^ | = help: remove the `!` and swap the blocks of the `if`/`else` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else = note: `#[deny(clippy::if_not_else)]` implied by `#[deny(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: src/token/cose/encrypt/mod.rs#L51
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/encrypt/mod.rs:51:5 | 51 | / fn gen_iv<B: CoseEncryptCipher>( 52 | | self, 53 | | backend: &mut B, 54 | | alg: &Algorithm, 55 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/encrypt/mod.rs#L38
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/encrypt/mod.rs:38:5 | 38 | / fn decrypt_aes_gcm( 39 | | &mut self, 40 | | algorithm: Algorithm, 41 | | key: CoseSymmetricKey<'_, Self::Error>, ... | 44 | | iv: &[u8], 45 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/encrypt/mod.rs#L29
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/encrypt/mod.rs:29:5 | 29 | / fn encrypt_aes_gcm( 30 | | &mut self, 31 | | algorithm: Algorithm, 32 | | key: CoseSymmetricKey<'_, Self::Error>, ... | 35 | | iv: &[u8], 36 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: src/token/cose/encrypt/mod.rs#L27
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/encrypt/mod.rs:27:5 | 27 | fn generate_rand(&mut self, buf: &mut [u8]) -> Result<(), 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/cose/crypto_impl/openssl.rs#L185
error: you seem to be trying to match on a boolean expression --> src/token/cose/crypto_impl/openssl.rs:185:45 | 185 | .and_then(|verification_successful| match verification_successful { | _____________________________________________^ 186 | | true => Ok(()), 187 | | false => Err(CoseCipherError::VerificationFailure), 188 | | }) | |_________^ 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/cose/crypto_impl/openssl.rs#L127
error: explicit `deref` method call --> src/token/cose/crypto_impl/openssl.rs:127:9 | 127 | / PKey::from_ec_key(private_key) 128 | | .map_err(CoseOpensslCipherError::from)? 129 | | .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 | 127 ~ &*PKey::from_ec_key(private_key) 128 ~ .map_err(CoseOpensslCipherError::from)?, |
casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers: src/token/cose/crypto_impl/openssl.rs#L67
error: casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers --> src/token/cose/crypto_impl/openssl.rs:67:28 | 67 | sign_ecdsa(&group, pad_size as i32, hash, key, target) | ^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap = note: `#[deny(clippy::cast_possible_wrap)]` implied by `#[deny(clippy::pedantic)]`
casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers: src/token/cose/crypto_impl/openssl.rs#L67
error: casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers --> src/token/cose/crypto_impl/openssl.rs:67:28 | 67 | sign_ecdsa(&group, pad_size as i32, hash, key, target) | ^^^^^^^^^^^^^^^ | = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation = note: `#[deny(clippy::cast_possible_truncation)]` implied by `#[deny(clippy::pedantic)]` help: ... or use `try_from` and handle the error accordingly | 67 | sign_ecdsa(&group, i32::try_from(pad_size), hash, key, target) | ~~~~~~~~~~~~~~~~~~~~~~~
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)
Check (no_std): src/token/cose/header_util.rs#L9
failed to resolve: use of undeclared crate or module `std`
Check (no_std): src/error/mod.rs#L16
failed to resolve: use of undeclared crate or module `std`
Check (no_std): src/error/mod.rs#L17
failed to resolve: use of undeclared crate or module `std`
Check (no_std): src/token/cose/key.rs#L10
failed to resolve: use of undeclared crate or module `std`
Check (no_std): src/token/cose/key.rs#L11
failed to resolve: use of undeclared crate or module `std`
Check (no_std): src/token/cose/sign/mod.rs#L289
cannot find macro `dbg` in this scope
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L180
cannot find macro `dbg` in this scope
Check (no_std): src/error/mod.rs#L285
cannot find type `Vec` in this scope
Check (no_std): src/error/mod.rs#L286
cannot find type `Vec` in this scope
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L79
cannot find type `Vec` in this scope
clippy_check
Clippy had exited with the 101 exit code
Test Suite (no_std): src/token/cose/header_util.rs#L9
failed to resolve: use of undeclared crate or module `std`
Test Suite (no_std): src/error/mod.rs#L16
failed to resolve: use of undeclared crate or module `std`
Test Suite (no_std): src/error/mod.rs#L17
failed to resolve: use of undeclared crate or module `std`
Test Suite (no_std): src/token/cose/key.rs#L10
failed to resolve: use of undeclared crate or module `std`
Test Suite (no_std): src/token/cose/key.rs#L11
failed to resolve: use of undeclared crate or module `std`
Test Suite (no_std): src/token/cose/sign/mod.rs#L289
cannot find macro `dbg` in this scope
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L180
cannot find macro `dbg` in this scope
Test Suite (no_std): src/error/mod.rs#L285
cannot find type `Vec` in this scope
Test Suite (no_std): src/error/mod.rs#L286
cannot find type `Vec` in this scope
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L79
cannot find type `Vec` in this scope
Test Suite: src/token/cose/sign/sign.rs#L448
No file found
Test Suite: src/token/cose/sign/sign.rs#L456
No file found
Test Suite: src/token/cose/sign/sign.rs#L464
No file found
Test Suite: src/token/cose/sign/sign.rs#L472
No file found
Test Suite: src/token/cose/sign/sign1.rs#L401
No file found
Test Suite: src/token/cose/sign/sign1.rs#L409
No file found
test_coverage: src/token/cose/sign/sign.rs#L448
No file found
test_coverage: src/token/cose/sign/sign.rs#L456
No file found
test_coverage: src/token/cose/sign/sign.rs#L464
No file found
test_coverage: src/token/cose/sign/sign.rs#L472
No file found
test_coverage: src/token/cose/sign/sign1.rs#L401
No file found
test_coverage: src/token/cose/sign/sign1.rs#L409
No file found
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 method: src/token/cose/sign/sign1.rs#L143
warning: missing documentation for a method --> src/token/cose/sign/sign1.rs:143:5 | 143 | / fn try_verify_detached< 144 | | 'a, 145 | | 'b, 146 | | B: CoseSignCipher, ... | 155 | | aad: &mut CAP, 156 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^
missing documentation for a method: src/token/cose/sign/sign1.rs#L135
warning: missing documentation for a method --> src/token/cose/sign/sign1.rs:135:5 | 135 | / fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 136 | | &self, 137 | | backend: &mut B, 138 | | key_provider: &mut CKP, 139 | | try_all_keys: bool, 140 | | aad: &mut CAP, 141 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^
missing documentation for a trait: src/token/cose/sign/sign1.rs#L134
warning: missing documentation for a trait --> src/token/cose/sign/sign1.rs:134:1 | 134 | pub trait CoseSign1Ext { | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/token/cose/sign/sign.rs#L107
warning: missing documentation for a method --> src/token/cose/sign/sign.rs:107:5 | 107 | / fn try_verify_detached< 108 | | 'a, 109 | | 'b, 110 | | B: CoseSignCipher, ... | 119 | | aad: &mut CAP, 120 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^
missing documentation for a method: src/token/cose/sign/sign.rs#L99
warning: missing documentation for a method --> src/token/cose/sign/sign.rs:99:5 | 99 | / fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 100 | | &self, 101 | | backend: &mut B, 102 | | key_provider: &mut CKP, 103 | | try_all_keys: bool, 104 | | aad: &mut CAP, 105 | | ) -> Result<(), CoseCipherError<B::Error>>; | |_______________________________________________^
missing documentation for a method: src/token/cose/sign/sign.rs#L19
warning: missing documentation for a method --> src/token/cose/sign/sign.rs:19:5 | 19 | / fn try_add_sign_detached< 20 | | 'a, 21 | | 'b, 22 | | B: CoseSignCipher, ... | 31 | | aad: &mut CAP, 32 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^
missing documentation for a method: src/token/cose/sign/sign.rs#L11
warning: missing documentation for a method --> src/token/cose/sign/sign.rs:11:5 | 11 | / fn try_add_sign<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>( 12 | | self, 13 | | backend: &mut B, 14 | | key_provider: &mut CKP, 15 | | sig: CoseSignature, 16 | | aad: &mut CAP, 17 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^
missing documentation for a trait: src/token/cose/key.rs#L401
warning: missing documentation for a trait --> src/token/cose/key.rs:401:1 | 401 | pub trait CoseAadProvider<'a>: BorrowMut<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a trait: src/token/cose/key.rs#L334
warning: missing documentation for a trait --> src/token/cose/key.rs:334:1 | 334 | pub trait CoseKeyProvider<'a> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L295
warning: missing documentation for a struct field --> src/token/cose/key.rs:295:5 | 295 | pub k: &'a [u8], | ^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L293
warning: missing documentation for a struct --> src/token/cose/key.rs:293:1 | 293 | pub struct CoseSymmetricKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L215
warning: missing documentation for a struct field --> src/token/cose/key.rs:215:5 | 215 | pub x: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L214
warning: missing documentation for a struct field --> src/token/cose/key.rs:214:5 | 214 | pub d: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L213
warning: missing documentation for a struct field --> src/token/cose/key.rs:213:5 | 213 | pub crv: EllipticCurve, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L211
warning: missing documentation for a struct --> src/token/cose/key.rs:211:1 | 211 | pub struct CoseOkpKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L102
warning: missing documentation for a struct field --> src/token/cose/key.rs:102:5 | 102 | pub sign: Option<bool>, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L101
warning: missing documentation for a struct field --> src/token/cose/key.rs:101:5 | 101 | pub y: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L100
warning: missing documentation for a struct field --> src/token/cose/key.rs:100:5 | 100 | pub x: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L99
warning: missing documentation for a struct field --> src/token/cose/key.rs:99:5 | 99 | pub d: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L98
warning: missing documentation for a struct field --> src/token/cose/key.rs:98:5 | 98 | pub crv: EllipticCurve, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L96
warning: missing documentation for a struct --> src/token/cose/key.rs:96:1 | 96 | pub struct CoseEc2Key<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a type alias: src/token/cose/key.rs#L94
warning: missing documentation for a type alias --> src/token/cose/key.rs:94:1 | 94 | pub type EllipticCurve = RegisteredLabelWithPrivate<iana::EllipticCurve>; | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L48
warning: missing documentation for a variant --> src/token/cose/key.rs:48:5 | 48 | Symmetric(CoseSymmetricKey<'a, OE>), | ^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L47
warning: missing documentation for a variant --> src/token/cose/key.rs:47:5 | 47 | Okp(CoseOkpKey<'a, OE>), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L46
warning: missing documentation for a variant --> src/token/cose/key.rs:46:5 | 46 | Ec2(CoseEc2Key<'a, OE>), | ^^^
missing documentation for an enum: src/token/cose/key.rs#L45
warning: missing documentation for an enum --> src/token/cose/key.rs:45:1 | 45 | pub enum CoseParsedKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L18
warning: missing documentation for a variant --> src/token/cose/key.rs:18:5 | 18 | Symmetric(iana::SymmetricKeyParameter), | ^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L17
warning: missing documentation for a variant --> src/token/cose/key.rs:17:5 | 17 | Okp(iana::OkpKeyParameter), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L16
warning: missing documentation for a variant --> src/token/cose/key.rs:16:5 | 16 | Ec2(iana::Ec2KeyParameter), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L15
warning: missing documentation for a variant --> src/token/cose/key.rs:15:5 | 15 | Common(iana::KeyParameter), | ^^^^^^
missing documentation for an enum: src/token/cose/key.rs#L14
warning: missing documentation for an enum --> src/token/cose/key.rs:14:1 | 14 | pub enum KeyParam { | ^^^^^^^^^^^^^^^^^
missing documentation for a trait: src/token/cose/encrypt/mod.rs#L50
warning: missing documentation for a trait --> src/token/cose/encrypt/mod.rs:50:1 | 50 | pub trait HeaderBuilderExt: Sized { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a trait: src/token/cose/encrypt/mod.rs#L48
warning: missing documentation for a trait --> src/token/cose/encrypt/mod.rs:48:1 | 48 | pub trait CoseKeyDistributionCipher: CoseEncryptCipher {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/token/cose/encrypt/mod.rs#L38
warning: missing documentation for a method --> src/token/cose/encrypt/mod.rs:38:5 | 38 | / fn decrypt_aes_gcm( 39 | | &mut self, 40 | | algorithm: Algorithm, 41 | | key: CoseSymmetricKey<'_, Self::Error>, ... | 44 | | iv: &[u8], 45 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^
missing documentation for a method: src/token/cose/encrypt/mod.rs#L29
warning: missing documentation for a method --> src/token/cose/encrypt/mod.rs:29:5 | 29 | / fn encrypt_aes_gcm( 30 | | &mut self, 31 | | algorithm: Algorithm, 32 | | key: CoseSymmetricKey<'_, Self::Error>, ... | 35 | | iv: &[u8], 36 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>; | |_______________________________________________________^
missing documentation for a struct: src/token/cose/crypto_impl/openssl.rs#L53
warning: missing documentation for a struct --> src/token/cose/crypto_impl/openssl.rs:53:1 | 53 | pub struct OpensslContext {} | ^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/cose/crypto_impl/openssl.rs#L38
warning: missing documentation for a variant --> src/token/cose/crypto_impl/openssl.rs:38:5 | 38 | Other(&'static str), | ^^^^^
missing documentation for a variant: src/token/cose/crypto_impl/openssl.rs#L37
warning: missing documentation for a variant --> src/token/cose/crypto_impl/openssl.rs:37:5 | 37 | OpensslError(ErrorStack), | ^^^^^^^^^^^^
missing documentation for an enum: src/token/cose/crypto_impl/openssl.rs#L36
warning: missing documentation for an enum --> src/token/cose/crypto_impl/openssl.rs:36:1 | 36 | pub enum CoseOpensslCipherError { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a module: src/token/cose/crypto_impl/mod.rs#L17
warning: missing documentation for a module --> src/token/cose/crypto_impl/mod.rs:17:1 | 17 | pub mod openssl; | ^^^^^^^^^^^^^^^
missing documentation for a module: src/token/cose/mod.rs#L7
warning: missing documentation for a module --> src/token/cose/mod.rs:7:1 | 7 | pub mod mac; | ^^^^^^^^^^^
missing documentation for a module: src/token/cose/mod.rs#L5
warning: missing documentation for a module --> src/token/cose/mod.rs:5:1 | 5 | pub mod sign; | ^^^^^^^^^^^^
missing documentation for a module: src/token/cose/mod.rs#L4
warning: missing documentation for a module --> src/token/cose/mod.rs:4:1 | 4 | pub mod key; | ^^^^^^^^^^^
missing documentation for a module: src/token/cose/mod.rs#L3
warning: missing documentation for a module --> src/token/cose/mod.rs:3:1 | 3 | pub mod header_util; | ^^^^^^^^^^^^^^^^^^^
missing documentation for a module: src/token/cose/mod.rs#L2
warning: missing documentation for a module --> src/token/cose/mod.rs:2:1 | 2 | pub mod encrypt; | ^^^^^^^^^^^^^^^
missing documentation for a module: src/token/mod.rs#L172
warning: missing documentation for a module --> src/token/mod.rs:172:1 | 172 | pub mod cose; | ^^^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L291
warning: missing documentation for a variant --> src/error/mod.rs:291:5 | 291 | IvRequired, | ^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L290
warning: missing documentation for a variant --> src/error/mod.rs:290:5 | 290 | NoKeyFound, | ^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L289
warning: missing documentation for a variant --> src/error/mod.rs:289:5 | 289 | TypeMismatch(Value), | ^^^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L288
warning: missing documentation for a variant --> src/error/mod.rs:288:5 | 288 | InvalidKeyParam(KeyParam, Value), | ^^^^^^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L287
warning: missing documentation for a variant --> src/error/mod.rs:287:5 | 287 | MissingKeyParam(KeyParam), | ^^^^^^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L286
warning: missing documentation for a variant --> src/error/mod.rs:286:5 | 286 | InvalidKeyId(Vec<u8>), | ^^^^^^^^^^^^
missing documentation for a variant: src/error/mod.rs#L285
warning: missing documentation for a variant --> src/error/mod.rs:285:5 | 285 | DuplicateHeaders(Vec<Label>), | ^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> src/lib.rs:308:9 | 308 | #![warn(missing_docs, rustdoc::missing_crate_level_docs)] | ^^^^^^^^^^^^
unneeded `return` statement: src/token/cose/sign/mod.rs#L224
warning: unneeded `return` statement --> src/token/cose/sign/mod.rs:224:27 | 224 | move |tosign| return backend.sign_ecdsa(algorithm, &ec2_key, tosign) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 224 | move |tosign| backend.sign_ecdsa(algorithm, &ec2_key, tosign) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module has the same name as its containing module: src/token/cose/sign/mod.rs#L11
warning: module has the same name as its containing module --> src/token/cose/sign/mod.rs:11:1 | 11 | mod sign; | ^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception = note: `#[warn(clippy::module_inception)]` on by default
you are using an explicit closure for copying elements: src/token/cose/key.rs#L433
warning: you are using an explicit closure for copying elements --> src/token/cose/key.rs:433:9 | 433 | self.next().map(|v| *v).unwrap_or(&[] as &[u8]) | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `self.next().copied()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
you are using an explicit closure for copying elements: src/token/cose/key.rs#L389
warning: you are using an explicit closure for copying elements --> src/token/cose/key.rs:389:32 | 389 | (v, _) => Box::new(v.iter().map(|v| *v)), | ^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `v.iter().copied()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
using `clone` on type `bool` which implements the `Copy` trait: src/token/cose/key.rs#L177
warning: using `clone` on type `bool` which implements the `Copy` trait --> src/token/cose/key.rs:177:49 | 177 | Some(Value::Bool(b)) => (None, Some(b.clone())), | ^^^^^^^^^ help: try dereferencing it: `*b` | = 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/cose/header_util.rs#L63
warning: you are explicitly cloning with `.map()` --> src/token/cose/header_util.rs:63:13 | 63 | / duplicate_header_fields 64 | | .into_iter() 65 | | .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 | 63 ~ duplicate_header_fields 64 + .into_iter().cloned() |
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: src/token/cose/header_util.rs#L43
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> src/token/cose/header_util.rs:43:16 | 43 | param_vec: &'a Vec<(Label, 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/cose/header_util.rs#L38
warning: unneeded `return` statement --> src/token/cose/header_util.rs:38:5 | 38 | return header_bucket_fields; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 38 - return header_bucket_fields; 38 + header_bucket_fields |
this function has too many arguments (8/7): src/token/cose/encrypt/encrypt0.rs#L236
warning: this function has too many arguments (8/7) --> src/token/cose/encrypt/encrypt0.rs:236:5 | 236 | / fn try_encrypt< 237 | | 'a, 238 | | 'b, 239 | | B: CoseEncryptCipher, ... | 250 | | external_aad: &mut CAP, 251 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |________________________________________________^ | = 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
called `unwrap` on `protected` after checking its variant with `is_some`: src/token/cose/encrypt/encrypt0.rs#L100
warning: called `unwrap` on `protected` after checking its variant with `is_some` --> src/token/cose/encrypt/encrypt0.rs:100:17 | 99 | let iv = if protected.is_some() && !protected.unwrap().iv.is_empty() { | ------------------- the check is happening here 100 | protected.unwrap().iv.as_ref() | ^^^^^^^^^^^^^^^^^^ | = help: try using `if let` or `match` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap = note: `#[warn(clippy::unnecessary_unwrap)]` on by default
unneeded `return` statement: src/token/cose/crypto_impl/openssl.rs#L285
warning: unneeded `return` statement --> src/token/cose/crypto_impl/openssl.rs:285:14 | 285 | v => return Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 285 | v => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L227
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:227:9 | 227 | / &BigNum::from_slice(key.y.unwrap()) 228 | | .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 229 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 227 ~ BigNum::from_slice(key.y.unwrap()) 228 + .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 229 ~ .deref(), |
this expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L224
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:224:9 | 224 | / &BigNum::from_slice(key.x.unwrap()) 225 | | .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 226 | | .deref(), | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 224 ~ BigNum::from_slice(key.x.unwrap()) 225 + .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 226 ~ .deref(), |
this expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L223
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:223:9 | 223 | &group, | ^^^^^^ help: change this to: `group` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L199
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:199:9 | 199 | / &BigNum::from_slice( 200 | | // According to the contract of the trait, this should be ensured by the caller, so it's 201 | | // fine to panic here. 202 | | key.d ... | 205 | | .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 206 | | .deref(), | |________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 199 ~ BigNum::from_slice( 200 + // According to the contract of the trait, this should be ensured by the caller, so it's 201 + // fine to panic here. 202 + key.d 203 + .expect("key provided to backend has no private component"), 204 + ) 205 + .map_err(CoseCipherError::<CoseOpensslCipherError>::from)? 206 ~ .deref(), |
this expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L167
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:167:53 | 167 | 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 expression creates a reference which is immediately dereferenced by the compiler: src/token/cose/crypto_impl/openssl.rs#L123
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/token/cose/crypto_impl/openssl.rs:123:55 | 123 | 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
unneeded `return` statement: src/token/cose/crypto_impl/openssl.rs#L112
warning: unneeded `return` statement --> src/token/cose/crypto_impl/openssl.rs:112:14 | 112 | v => return Err(CoseCipherError::UnsupportedAlgorithm(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 112 | v => Err(CoseCipherError::UnsupportedAlgorithm(v)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unneeded `return` statement: src/token/cose/crypto_impl/openssl.rs#L101
warning: unneeded `return` statement --> src/token/cose/crypto_impl/openssl.rs:101:14 | 101 | v => return Err(CoseCipherError::UnsupportedCurve(v.clone())), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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` | 101 | v => Err(CoseCipherError::UnsupportedCurve(v.clone())), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
duplicated attribute: src/token/cose/crypto_impl/openssl.rs#L11
warning: duplicated attribute --> src/token/cose/crypto_impl/openssl.rs:11:8 | 11 | #![cfg(feature = "openssl")] | ^^^^^^^^^^^^^^^^^^^ | note: first defined here --> src/token/cose/crypto_impl/mod.rs:16:7 | 16 | #[cfg(feature = "openssl")] | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute --> src/token/cose/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
function `check_for_duplicate_headers` is never used: src/token/cose/header_util.rs#L52
warning: function `check_for_duplicate_headers` is never used --> src/token/cose/header_util.rs:52:15 | 52 | pub(crate) fn check_for_duplicate_headers<E: Display>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `create_header_parameter_set` is never used: src/token/cose/header_util.rs#L11
warning: function `create_header_parameter_set` is never used --> src/token/cose/header_util.rs:11:15 | 11 | pub(crate) fn create_header_parameter_set(header_bucket: &Header) -> BTreeSet<Label> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
method `try_encrypt` is never used: src/token/cose/encrypt/encrypt0.rs#L236
warning: method `try_encrypt` is never used --> src/token/cose/encrypt/encrypt0.rs:236:8 | 235 | pub trait CoseEncrypt0BuilderExt: Sized { | ---------------------- method in this trait 236 | fn try_encrypt< | ^^^^^^^^^^^
method `try_decrypt` is never used: src/token/cose/encrypt/encrypt0.rs#L189
warning: method `try_decrypt` is never used --> src/token/cose/encrypt/encrypt0.rs:189:8 | 188 | pub trait CoseEncrypt0Ext { | --------------- method in this trait 189 | fn try_decrypt< | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
variable does not need to be mutable: src/token/mod.rs#L526
warning: variable does not need to be mutable --> src/token/mod.rs:526:5 | 526 | mut external_aad: Option<&[u8]>, | ----^^^^^^^^^^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign1.rs#L197
warning: variable does not need to be mutable --> src/token/cose/sign/sign1.rs:197:9 | 197 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign1.rs#L109
warning: variable does not need to be mutable --> src/token/cose/sign/sign1.rs:109:9 | 109 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign1.rs#L74
warning: variable does not need to be mutable --> src/token/cose/sign/sign1.rs:74:9 | 74 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign.rs#L172
warning: variable does not need to be mutable --> src/token/cose/sign/sign.rs:172:9 | 172 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign.rs#L129
warning: variable does not need to be mutable --> src/token/cose/sign/sign.rs:129:9 | 129 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign.rs#L76
warning: variable does not need to be mutable --> src/token/cose/sign/sign.rs:76:9 | 76 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: src/token/cose/sign/sign.rs#L47
warning: variable does not need to be mutable --> src/token/cose/sign/sign.rs:47:9 | 47 | mut aad: &mut CAP, | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `unprotected`: src/token/cose/key.rs#L441
warning: unused variable: `unprotected` --> src/token/cose/key.rs:441:58 | 441 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected`
unused variable: `protected`: src/token/cose/key.rs#L441
warning: unused variable: `protected` --> src/token/cose/key.rs:441:30 | 441 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected`
unused variable: `unprotected`: src/token/cose/key.rs#L432
warning: unused variable: `unprotected` --> src/token/cose/key.rs:432:58 | 432 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected`
unused variable: `protected`: src/token/cose/key.rs#L432
warning: unused variable: `protected` --> src/token/cose/key.rs:432:30 | 432 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected`
unused variable: `unprotected`: src/token/cose/key.rs#L426
warning: unused variable: `unprotected` --> src/token/cose/key.rs:426:58 | 426 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected`
unused variable: `protected`: src/token/cose/key.rs#L426
warning: unused variable: `protected` --> src/token/cose/key.rs:426:30 | 426 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected`
unused variable: `unprotected`: src/token/cose/key.rs#L420
warning: unused variable: `unprotected` --> src/token/cose/key.rs:420:58 | 420 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected`
unused variable: `protected`: src/token/cose/key.rs#L420
warning: unused variable: `protected` --> src/token/cose/key.rs:420:30 | 420 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected`
unused variable: `unprotected`: src/token/cose/key.rs#L414
warning: unused variable: `unprotected` --> src/token/cose/key.rs:414:58 | 414 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unprotected`
unused variable: `protected`: src/token/cose/key.rs#L414
warning: unused variable: `protected` --> src/token/cose/key.rs:414:30 | 414 | fn lookup_aad(&mut self, protected: Option<&Header>, unprotected: Option<&Header>) -> &'a [u8] { | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protected`
unused variable: `e`: src/token/cose/key.rs#L235
warning: unused variable: `e` --> src/token/cose/key.rs:235:72 | 235 | let crv = EllipticCurve::from_cbor_value(crv.clone()).map_err(|e| { | ^ help: if this is intentional, prefix it with an underscore: `_e`
unused variable: `e`: src/token/cose/key.rs#L121
warning: unused variable: `e` --> src/token/cose/key.rs:121:72 | 121 | let crv = EllipticCurve::from_cbor_value(crv.clone()).map_err(|e| { | ^ help: if this is intentional, prefix it with an underscore: `_e`
unused variable: `try_all_keys`: src/token/cose/encrypt/encrypt0.rs#L75
warning: unused variable: `try_all_keys` --> src/token/cose/encrypt/encrypt0.rs:75:5 | 75 | try_all_keys: bool, | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_try_all_keys`
unused import: `CoseAadProvider`: src/token/cose/sign/mod.rs#L16
warning: unused import: `CoseAadProvider` --> src/token/cose/sign/mod.rs:16:5 | 16 | CoseAadProvider, CoseEc2Key, CoseKeyProvider, CoseParsedKey, KeyParam, | ^^^^^^^^^^^^^^^
unused import: `crate::CoseSignCipher`: src/token/cose/encrypt/mod.rs#L5
warning: unused import: `crate::CoseSignCipher` --> src/token/cose/encrypt/mod.rs:5:5 | 5 | use crate::CoseSignCipher; | ^^^^^^^^^^^^^^^^^^^^^
unused import: `core::borrow::BorrowMut`: src/token/cose/sign/mod.rs#L18
warning: unused import: `core::borrow::BorrowMut` --> src/token/cose/sign/mod.rs:18:5 | 18 | use core::borrow::BorrowMut; | ^^^^^^^^^^^^^^^^^^^^^^^
unused import: `EnumI64`: src/token/cose/sign/mod.rs#L20
warning: unused import: `EnumI64` --> src/token/cose/sign/mod.rs:20:36 | 20 | use coset::iana::{Ec2KeyParameter, EnumI64}; | ^^^^^^^
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 import: `Debug`: src/token/mod.rs#L156
warning: unused import: `Debug` --> src/token/mod.rs:156:17 | 156 | use core::fmt::{Debug, Display}; | ^^^^^
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 import: `Display`: src/token/mod.rs#L156
warning: unused import: `Display` --> src/token/mod.rs:156:24 | 156 | use core::fmt::{Debug, Display}; | ^^^^^^^
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 import: `core::borrow::BorrowMut`: src/token/cose/sign/sign.rs#L5
warning: unused import: `core::borrow::BorrowMut` --> src/token/cose/sign/sign.rs:5:5 | 5 | use core::borrow::BorrowMut; | ^^^^^^^^^^^^^^^^^^^^^^^
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 import: `CryptoRng`: src/token/mod.rs#L170
warning: unused import: `CryptoRng` --> src/token/mod.rs:170:12 | 170 | use rand::{CryptoRng, RngCore}; | ^^^^^^^^^
unused import: `RngCore`: src/token/mod.rs#L170
warning: unused import: `RngCore` --> src/token/mod.rs:170:23 | 170 | use rand::{CryptoRng, RngCore}; | ^^^^^^^
unused variable: `key_id`: src/token/cose/key.rs#L388
warning: unused variable: `key_id` --> src/token/cose/key.rs:388:30 | 388 | (Some(key), Some(key_id)) => Box::new(std::iter::once(*key)), | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_id` | = note: `#[warn(unused_variables)]` on by default
unused macro definition: `prepare_headers`: src/token/mod.rs#L180
warning: unused macro definition: `prepare_headers` --> src/token/mod.rs:180:14 | 180 | macro_rules! prepare_headers { | ^^^^^^^^^^^^^^^ | = note: `#[warn(unused_macros)]` on by default
unnecessary parentheses around pattern: src/token/cose/sign/mod.rs#L261
warning: unnecessary parentheses around pattern --> src/token/cose/sign/mod.rs:261:13 | 261 | v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), | ^ ^ | help: remove these parentheses | 261 - v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), 261 + v @ Algorithm::Assigned(_) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), |
unnecessary parentheses around pattern: src/token/cose/sign/mod.rs#L226
warning: unnecessary parentheses around pattern --> src/token/cose/sign/mod.rs:226:13 | 226 | v @ (Algorithm::Assigned(_)) => { | ^ ^ | help: remove these parentheses | 226 - v @ (Algorithm::Assigned(_)) => { 226 + v @ Algorithm::Assigned(_) => { |
unused imports: `CoseKey`, `RegisteredLabel`: src/token/cose/sign/mod.rs#L21
warning: unused imports: `CoseKey`, `RegisteredLabel` --> src/token/cose/sign/mod.rs:21:30 | 21 | use coset::{iana, Algorithm, CoseKey, Header, KeyOperation, RegisteredLabel}; | ^^^^^^^ ^^^^^^^^^^^^^^^
Check (no_std): src/error/mod.rs#L20
unused import: `iana`
Check (no_std): src/token/mod.rs#L167
unused imports: `CoseEncrypt0`, `CoseEncrypt`
unused imports: `CoseKey`, `CoseSignatureBuilder`: src/token/cose/sign/sign1.rs#L6
warning: unused imports: `CoseKey`, `CoseSignatureBuilder` --> src/token/cose/sign/sign1.rs:6:13 | 6 | use coset::{CoseKey, CoseSign1, CoseSign1Builder, CoseSignatureBuilder, Header}; | ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L4
unused import: `find_param_by_label`
unused import: `core::borrow::BorrowMut`: src/token/cose/sign/sign1.rs#L5
warning: unused import: `core::borrow::BorrowMut` --> src/token/cose/sign/sign1.rs:5:5 | 5 | use core::borrow::BorrowMut; | ^^^^^^^^^^^^^^^^^^^^^^^
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L7
unused import: `CoseEc2Key`
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L109
unnecessary parentheses around pattern
unused import: `CoseKey`: src/token/cose/sign/sign.rs#L6
warning: unused import: `CoseKey` --> src/token/cose/sign/sign.rs:6:13 | 6 | use coset::{CoseKey, CoseSign, CoseSignBuilder, CoseSignature}; | ^^^^^^^
Check (no_std): src/token/cose/encrypt/encrypt0.rs#L151
unnecessary parentheses around pattern
unused import: `std::convert::Infallible`: src/token/cose/key.rs#L10
warning: unused import: `std::convert::Infallible` --> src/token/cose/key.rs:10:5 | 10 | use std::convert::Infallible; | ^^^^^^^^^^^^^^^^^^^^^^^^
Check (no_std): src/token/cose/encrypt/mod.rs#L4
unused import: `CoseEc2Key`
Check (no_std): src/token/cose/encrypt/mod.rs#L8
unused imports: `CoseEncrypt0Builder`, `CoseEncrypt0`, `CoseEncryptBuilder`, `CoseEncrypt`, `Header`
unused import: `CoseSignature`: src/token/cose/key.rs#L8
warning: unused import: `CoseSignature` --> src/token/cose/key.rs:8:33 | 8 | iana, AsCborValue, CoseKey, CoseSignature, Header, KeyType, Label, RegisteredLabelWithPrivate, | ^^^^^^^^^^^^^
Check (no_std): src/token/cose/header_util.rs#L4
unused import: `crate::CoseSignCipher`
Check (no_std): src/token/cose/key.rs#L4
unused import: `Borrow`
unused import: `Borrow`: src/token/cose/key.rs#L4
warning: unused import: `Borrow` --> src/token/cose/key.rs:4:20 | 4 | use core::borrow::{Borrow, BorrowMut}; | ^^^^^^
unused import: `crate::CoseSignCipher`: src/token/cose/header_util.rs#L4
warning: unused import: `crate::CoseSignCipher` --> src/token/cose/header_util.rs:4:5 | 4 | use crate::CoseSignCipher; | ^^^^^^^^^^^^^^^^^^^^^
unused imports: `CoseEncrypt0Builder`, `CoseEncrypt0`, `CoseEncryptBuilder`, `CoseEncrypt`, `Header`: src/token/cose/encrypt/mod.rs#L8
warning: unused imports: `CoseEncrypt0Builder`, `CoseEncrypt0`, `CoseEncryptBuilder`, `CoseEncrypt`, `Header` --> src/token/cose/encrypt/mod.rs:8:22 | 8 | iana, Algorithm, CoseEncrypt, CoseEncrypt0, CoseEncrypt0Builder, CoseEncryptBuilder, Header, | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^
unused import: `CoseEc2Key`: src/token/cose/encrypt/mod.rs#L4
warning: unused import: `CoseEc2Key` --> src/token/cose/encrypt/mod.rs:4:31 | 4 | use crate::token::cose::key::{CoseEc2Key, CoseSymmetricKey}; | ^^^^^^^^^^
unnecessary parentheses around pattern: src/token/cose/encrypt/encrypt0.rs#L151
warning: unnecessary parentheses around pattern --> src/token/cose/encrypt/encrypt0.rs:151:13 | 151 | v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), | ^ ^ | help: remove these parentheses | 151 - v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), 151 + v @ Algorithm::Assigned(_) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), |
unnecessary parentheses around pattern: src/token/cose/encrypt/encrypt0.rs#L109
warning: unnecessary parentheses around pattern --> src/token/cose/encrypt/encrypt0.rs:109:13 | 109 | v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 109 - v @ (Algorithm::Assigned(_)) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), 109 + v @ Algorithm::Assigned(_) => Err(CoseCipherError::UnsupportedAlgorithm(v.clone())), |
unused import: `CoseEc2Key`: src/token/cose/encrypt/encrypt0.rs#L7
warning: unused import: `CoseEc2Key` --> src/token/cose/encrypt/encrypt0.rs:7:22 | 7 | CoseAadProvider, CoseEc2Key, CoseKeyProvider, CoseParsedKey, CoseSymmetricKey, KeyParam, | ^^^^^^^^^^
unused import: `find_param_by_label`: src/token/cose/encrypt/encrypt0.rs#L4
warning: unused import: `find_param_by_label` --> src/token/cose/encrypt/encrypt0.rs:4:52 | 4 | determine_algorithm, determine_key_candidates, find_param_by_label, | ^^^^^^^^^^^^^^^^^^^
unused import: `std::convert::Infallible`: src/token/cose/crypto_impl/openssl.rs#L31
warning: unused import: `std::convert::Infallible` --> src/token/cose/crypto_impl/openssl.rs:31:5 | 31 | use std::convert::Infallible; | ^^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `CoseKey`, `Header`, `Label`, `ProtectedHeader`: src/token/cose/crypto_impl/openssl.rs#L21
warning: unused imports: `CoseKey`, `Header`, `Label`, `ProtectedHeader` --> src/token/cose/crypto_impl/openssl.rs:21:30 | 21 | use coset::{iana, Algorithm, CoseKey, Header, Label, ProtectedHeader}; | ^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^
unused import: `coset::iana::EnumI64`: src/token/cose/crypto_impl/openssl.rs#L20
warning: unused import: `coset::iana::EnumI64` --> src/token/cose/crypto_impl/openssl.rs:20:5 | 20 | use coset::iana::EnumI64; | ^^^^^^^^^^^^^^^^^^^^
unused import: `ciborium::value::Value`: src/token/cose/crypto_impl/openssl.rs#L18
warning: unused import: `ciborium::value::Value` --> src/token/cose/crypto_impl/openssl.rs:18:5 | 18 | use ciborium::value::Value; | ^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::token::cose::header_util::find_param_by_label`: src/token/cose/crypto_impl/openssl.rs#L14
warning: unused import: `crate::token::cose::header_util::find_param_by_label` --> src/token/cose/crypto_impl/openssl.rs:14:5 | 14 | use crate::token::cose::header_util::find_param_by_label; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `CoseEncrypt0`, `CoseEncrypt`: src/token/mod.rs#L167
warning: unused imports: `CoseEncrypt0`, `CoseEncrypt` --> src/token/mod.rs:167:36 | 167 | AsCborValue, CborSerializable, CoseEncrypt, CoseEncrypt0, CoseKey, CoseSign, CoseSign1, | ^^^^^^^^^^^ ^^^^^^^^^^^^
unused import: `iana`: src/error/mod.rs#L20
warning: unused import: `iana` --> src/error/mod.rs:20:13 | 20 | use coset::{iana, Algorithm, CoseError, KeyOperation, KeyType, Label}; | ^^^^
unused import: `std::convert::Infallible`: src/error/mod.rs#L17
warning: unused import: `std::convert::Infallible` --> src/error/mod.rs:17:5 | 17 | use std::convert::Infallible; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = 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/error/mod.rs#L17
unused import: `std::convert::Infallible`
Check: src/error/mod.rs#L20
unused import: `iana`
Check: src/token/mod.rs#L167
unused imports: `CoseEncrypt0`, `CoseEncrypt`
Check: src/token/cose/crypto_impl/openssl.rs#L14
unused import: `crate::token::cose::header_util::find_param_by_label`
Check: src/token/cose/crypto_impl/openssl.rs#L18
unused import: `ciborium::value::Value`
Check: src/token/cose/crypto_impl/openssl.rs#L20
unused import: `coset::iana::EnumI64`
Check: src/token/cose/crypto_impl/openssl.rs#L21
unused imports: `CoseKey`, `Header`, `Label`, `ProtectedHeader`
Check: src/token/cose/crypto_impl/openssl.rs#L31
unused import: `std::convert::Infallible`
Check: src/token/cose/encrypt/encrypt0.rs#L4
unused import: `find_param_by_label`
Check: src/token/cose/encrypt/encrypt0.rs#L7
unused import: `CoseEc2Key`
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 (no_std): src/error/mod.rs#L20
unused import: `iana`
Test Suite (no_std): src/token/mod.rs#L167
unused imports: `CoseEncrypt0`, `CoseEncrypt`
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L4
unused import: `find_param_by_label`
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L7
unused import: `CoseEc2Key`
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L109
unnecessary parentheses around pattern
Test Suite (no_std): src/token/cose/encrypt/encrypt0.rs#L151
unnecessary parentheses around pattern
Test Suite (no_std): src/token/cose/encrypt/mod.rs#L4
unused import: `CoseEc2Key`
Test Suite (no_std): src/token/cose/encrypt/mod.rs#L8
unused imports: `CoseEncrypt0Builder`, `CoseEncrypt0`, `CoseEncryptBuilder`, `CoseEncrypt`, `Header`
Test Suite (no_std): src/token/cose/header_util.rs#L4
unused import: `crate::CoseSignCipher`
Test Suite (no_std): src/token/cose/key.rs#L4
unused import: `Borrow`
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/error/mod.rs#L17
unused import: `std::convert::Infallible`
Test Suite: src/error/mod.rs#L20
unused import: `iana`
Test Suite: src/token/mod.rs#L167
unused imports: `CoseEncrypt0`, `CoseEncrypt`
Test Suite: src/token/cose/crypto_impl/openssl.rs#L14
unused import: `crate::token::cose::header_util::find_param_by_label`
Test Suite: src/token/cose/crypto_impl/openssl.rs#L18
unused import: `ciborium::value::Value`
Test Suite: src/token/cose/crypto_impl/openssl.rs#L20
unused import: `coset::iana::EnumI64`
Test Suite: src/token/cose/crypto_impl/openssl.rs#L21
unused imports: `CoseKey`, `Header`, `Label`, `ProtectedHeader`
Test Suite: src/token/cose/crypto_impl/openssl.rs#L31
unused import: `std::convert::Infallible`
Test Suite: src/token/cose/encrypt/encrypt0.rs#L4
unused import: `find_param_by_label`
Test Suite: src/token/cose/encrypt/encrypt0.rs#L7
unused import: `CoseEc2Key`
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. 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. 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
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
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/