From 5053421a9a3c9c9e3df64d33c3f1454748fa6333 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:03:56 +0000 Subject: [PATCH 1/2] Chore(deps): bump chrono from 0.4.38 to 0.4.39 Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.38 to 0.4.39. - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](https://github.com/chronotope/chrono/compare/v0.4.38...v0.4.39) --- updated-dependencies: - dependency-name: chrono dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5489d70..af3dbfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -211,9 +211,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", From bcba0380ec3377acf01ffd6a956fb519ea96d50b Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Fri, 13 Dec 2024 15:03:10 -0800 Subject: [PATCH 2/2] chore: fix stable rust clippy warning Remove explicit lifetimes that could be elided, for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes. --- rustls-mbedcrypto-provider/src/tls13.rs | 2 +- rustls-mbedcrypto-provider/tests/api.rs | 10 +++++----- rustls-mbedcrypto-provider/tests/common/mod.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rustls-mbedcrypto-provider/src/tls13.rs b/rustls-mbedcrypto-provider/src/tls13.rs index b63f471..6004674 100644 --- a/rustls-mbedcrypto-provider/src/tls13.rs +++ b/rustls-mbedcrypto-provider/src/tls13.rs @@ -196,7 +196,7 @@ struct MbedHkdfUsingHmac<'a>(&'a super::hmac::Hmac); const ZERO_IKM: [u8; crate::hmac::Tag::MAX_LEN] = [0u8; crate::hmac::Tag::MAX_LEN]; -impl<'a> Hkdf for MbedHkdfUsingHmac<'a> { +impl Hkdf for MbedHkdfUsingHmac<'_> { fn extract_from_zero_ikm(&self, salt: Option<&[u8]>) -> Box { let md = self.0.hash_algorithm().hash_type; let capacity = self.0.hash_algorithm().output_len; diff --git a/rustls-mbedcrypto-provider/tests/api.rs b/rustls-mbedcrypto-provider/tests/api.rs index 2abc470..50b9ca7 100644 --- a/rustls-mbedcrypto-provider/tests/api.rs +++ b/rustls-mbedcrypto-provider/tests/api.rs @@ -1570,12 +1570,12 @@ where buffer: Vec>, } -impl<'a, C, S> OtherSession<'a, C, S> +impl OtherSession<'_, C, S> where C: DerefMut + Deref>, S: SideData, { - fn new(sess: &'a mut C) -> OtherSession<'a, C, S> { + fn new(sess: &mut C) -> OtherSession { OtherSession { sess, reads: 0, @@ -1588,7 +1588,7 @@ where } } - fn new_buffered(sess: &'a mut C) -> OtherSession<'a, C, S> { + fn new_buffered(sess: &mut C) -> OtherSession { let mut os = OtherSession::new(sess); os.buffered = true; os @@ -1630,7 +1630,7 @@ where } } -impl<'a, C, S> io::Read for OtherSession<'a, C, S> +impl io::Read for OtherSession<'_, C, S> where C: DerefMut + Deref>, S: SideData, @@ -1641,7 +1641,7 @@ where } } -impl<'a, C, S> io::Write for OtherSession<'a, C, S> +impl io::Write for OtherSession<'_, C, S> where C: DerefMut + Deref>, S: SideData, diff --git a/rustls-mbedcrypto-provider/tests/common/mod.rs b/rustls-mbedcrypto-provider/tests/common/mod.rs index f6bcc08..edbc51a 100644 --- a/rustls-mbedcrypto-provider/tests/common/mod.rs +++ b/rustls-mbedcrypto-provider/tests/common/mod.rs @@ -628,7 +628,7 @@ pub fn do_handshake_until_both_error( } } -pub fn server_name(name: &'static str) -> ServerName { +pub fn server_name(name: &'static str) -> ServerName<'static> { name.try_into().unwrap() }