Skip to content

Commit

Permalink
Fixed clippy warnings for Rust 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Jan 9, 2025
1 parent 1faff31 commit e601f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snxcore/src/platform/linux/xfrm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct XfrmLink<'a> {
address: Ipv4Net,
}

impl<'a> XfrmLink<'a> {
impl XfrmLink<'_> {
async fn add(&self) -> anyhow::Result<()> {
let _ = self.delete().await;

Expand Down Expand Up @@ -70,7 +70,7 @@ struct XfrmState<'a> {
params: &'a EspCryptMaterial,
}

impl<'a> XfrmState<'a> {
impl XfrmState<'_> {
fn auth_alg_as_xfrm_name(&self) -> &'static str {
match self.params.auth_algorithm {
EspAuthAlgorithm::HmacSha96 | EspAuthAlgorithm::HmacSha160 => "hmac(sha1)",
Expand Down

0 comments on commit e601f2f

Please sign in to comment.