Skip to content

Commit

Permalink
Chore(deps): bump chrono from 0.4.38 to 0.4.39 (#112)
Browse files Browse the repository at this point in the history
* 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](chronotope/chrono@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] <[email protected]>

* 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.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuxiang Cao <[email protected]>
  • Loading branch information
dependabot[bot] and Taowyoo authored Dec 13, 2024
1 parent 71f8f8c commit 5903ecd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rustls-mbedcrypto-provider/src/tls13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn HkdfExpander> {
let md = self.0.hash_algorithm().hash_type;
let capacity = self.0.hash_algorithm().output_len;
Expand Down
10 changes: 5 additions & 5 deletions rustls-mbedcrypto-provider/tests/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1570,12 +1570,12 @@ where
buffer: Vec<Vec<u8>>,
}

impl<'a, C, S> OtherSession<'a, C, S>
impl<C, S> OtherSession<'_, C, S>
where
C: DerefMut + Deref<Target = ConnectionCommon<S>>,
S: SideData,
{
fn new(sess: &'a mut C) -> OtherSession<'a, C, S> {
fn new(sess: &mut C) -> OtherSession<C, S> {
OtherSession {
sess,
reads: 0,
Expand All @@ -1588,7 +1588,7 @@ where
}
}

fn new_buffered(sess: &'a mut C) -> OtherSession<'a, C, S> {
fn new_buffered(sess: &mut C) -> OtherSession<C, S> {
let mut os = OtherSession::new(sess);
os.buffered = true;
os
Expand Down Expand Up @@ -1630,7 +1630,7 @@ where
}
}

impl<'a, C, S> io::Read for OtherSession<'a, C, S>
impl<C, S> io::Read for OtherSession<'_, C, S>
where
C: DerefMut + Deref<Target = ConnectionCommon<S>>,
S: SideData,
Expand All @@ -1641,7 +1641,7 @@ where
}
}

impl<'a, C, S> io::Write for OtherSession<'a, C, S>
impl<C, S> io::Write for OtherSession<'_, C, S>
where
C: DerefMut + Deref<Target = ConnectionCommon<S>>,
S: SideData,
Expand Down
2 changes: 1 addition & 1 deletion rustls-mbedcrypto-provider/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 5903ecd

Please sign in to comment.