diff --git a/crates/wasm-wave/src/value/convert.rs b/crates/wasm-wave/src/value/convert.rs index 236fb7b9f7..f32d71704a 100644 --- a/crates/wasm-wave/src/value/convert.rs +++ b/crates/wasm-wave/src/value/convert.rs @@ -95,7 +95,7 @@ impl From for Value { } } -impl<'a> ValueTyped for &'a str { +impl ValueTyped for &str { fn value_type() -> Type { String::value_type() } diff --git a/crates/wasm-wave/src/wasm/fmt.rs b/crates/wasm-wave/src/wasm/fmt.rs index 1cfc8c32bc..3de9f468c1 100644 --- a/crates/wasm-wave/src/wasm/fmt.rs +++ b/crates/wasm-wave/src/wasm/fmt.rs @@ -9,7 +9,7 @@ use crate::{ /// Implements a WAVE-formatted [`Display`] for a [`WasmType`]. pub struct DisplayType<'a, T: WasmType>(pub &'a T); -impl<'a, T: WasmType> Display for DisplayType<'a, T> { +impl Display for DisplayType<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let ty = self.0; match ty.kind() { @@ -95,7 +95,7 @@ impl<'a, T: WasmType> Display for DisplayType<'a, T> { /// Implements a WAVE-formatted [`Display`] for a [`WasmValue`]. pub struct DisplayValue<'a, T: WasmValue>(pub &'a T); -impl<'a, T: WasmValue> Display for DisplayValue<'a, T> { +impl Display for DisplayValue<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let mut buf = vec![]; Writer::new(&mut buf) @@ -155,7 +155,7 @@ impl Display for DisplayFunc { /// Implements a WAVE-formatted [`Display`] for [`WasmValue`] func arguments. pub struct DisplayFuncArgs<'a, T: WasmValue>(pub &'a [T]); -impl<'a, T: WasmValue> Display for DisplayFuncArgs<'a, T> { +impl Display for DisplayFuncArgs<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_str("(")?; for (idx, v) in self.0.iter().enumerate() { @@ -171,7 +171,7 @@ impl<'a, T: WasmValue> Display for DisplayFuncArgs<'a, T> { /// Implements a WAVE-formatted [`Display`] for [`WasmValue`] func results. pub struct DisplayFuncResults<'a, T: WasmValue>(pub &'a [T]); -impl<'a, T: WasmValue> Display for DisplayFuncResults<'a, T> { +impl Display for DisplayFuncResults<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if self.0.len() == 1 { DisplayValue(&self.0[0]).fmt(f)