diff --git a/src/config/config_file/mise_toml.rs b/src/config/config_file/mise_toml.rs index 19e34154ed..ea7c6b239e 100644 --- a/src/config/config_file/mise_toml.rs +++ b/src/config/config_file/mise_toml.rs @@ -586,7 +586,7 @@ impl<'de> de::Deserialize<'de> for EnvList { { struct ValVisitor; - impl<'de> Visitor<'de> for ValVisitor { + impl Visitor<'_> for ValVisitor { type Value = Val; fn expecting( &self, @@ -843,7 +843,7 @@ impl<'de> de::Deserialize<'de> for BackendArg { { struct BackendArgVisitor; - impl<'de> Visitor<'de> for BackendArgVisitor { + impl Visitor<'_> for BackendArgVisitor { type Value = BackendArg; fn expecting(&self, formatter: &mut Formatter) -> std::fmt::Result { formatter.write_str("backend argument") diff --git a/src/shell/nushell.rs b/src/shell/nushell.rs index 3e28805472..bc53c9e74c 100644 --- a/src/shell/nushell.rs +++ b/src/shell/nushell.rs @@ -13,7 +13,7 @@ enum EnvOp<'a> { Hide { key: &'a str }, } -impl<'a> Display for EnvOp<'a> { +impl Display for EnvOp<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { #[allow(clippy::write_with_newline)] match self {