From 93f15fc563ebf1fd67da992b31897be9d37f7fc6 Mon Sep 17 00:00:00 2001 From: Cormac Relf Date: Fri, 6 Dec 2024 11:58:01 +1100 Subject: [PATCH] accept clippy fixes for needless lifetimes --- src/input_processing/dual_axis/custom.rs | 2 +- src/input_processing/single_axis/custom.rs | 2 +- src/user_input/trait_serde.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/input_processing/dual_axis/custom.rs b/src/input_processing/dual_axis/custom.rs index 18f4cf8d..864b3abf 100644 --- a/src/input_processing/dual_axis/custom.rs +++ b/src/input_processing/dual_axis/custom.rs @@ -261,7 +261,7 @@ impl FromReflect for Box { } } -impl<'a> Serialize for dyn CustomDualAxisProcessor + 'a { +impl Serialize for dyn CustomDualAxisProcessor + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer, diff --git a/src/input_processing/single_axis/custom.rs b/src/input_processing/single_axis/custom.rs index f827beea..ef367974 100644 --- a/src/input_processing/single_axis/custom.rs +++ b/src/input_processing/single_axis/custom.rs @@ -260,7 +260,7 @@ impl FromReflect for Box { } } -impl<'a> Serialize for dyn CustomAxisProcessor + 'a { +impl Serialize for dyn CustomAxisProcessor + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer, diff --git a/src/user_input/trait_serde.rs b/src/user_input/trait_serde.rs index a13e5d8f..ab40f870 100644 --- a/src/user_input/trait_serde.rs +++ b/src/user_input/trait_serde.rs @@ -98,7 +98,7 @@ mod buttonlike { use super::*; - impl<'a> Serialize for dyn Buttonlike + 'a { + impl Serialize for dyn Buttonlike + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer, @@ -128,7 +128,7 @@ mod axislike { use super::*; - impl<'a> Serialize for dyn Axislike + 'a { + impl Serialize for dyn Axislike + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer, @@ -158,7 +158,7 @@ mod dualaxislike { use super::*; - impl<'a> Serialize for dyn DualAxislike + 'a { + impl Serialize for dyn DualAxislike + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer, @@ -188,7 +188,7 @@ mod tripleaxislike { use super::*; - impl<'a> Serialize for dyn TripleAxislike + 'a { + impl Serialize for dyn TripleAxislike + '_ { fn serialize(&self, serializer: S) -> Result where S: Serializer,