Skip to content

Commit

Permalink
accept clippy fixes for needless lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacrelf committed Dec 6, 2024
1 parent 9b62b53 commit 93f15fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/input_processing/dual_axis/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl FromReflect for Box<dyn CustomDualAxisProcessor> {
}
}

impl<'a> Serialize for dyn CustomDualAxisProcessor + 'a {
impl Serialize for dyn CustomDualAxisProcessor + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
2 changes: 1 addition & 1 deletion src/input_processing/single_axis/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl FromReflect for Box<dyn CustomAxisProcessor> {
}
}

impl<'a> Serialize for dyn CustomAxisProcessor + 'a {
impl Serialize for dyn CustomAxisProcessor + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
8 changes: 4 additions & 4 deletions src/user_input/trait_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ mod buttonlike {

use super::*;

impl<'a> Serialize for dyn Buttonlike + 'a {
impl Serialize for dyn Buttonlike + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -128,7 +128,7 @@ mod axislike {

use super::*;

impl<'a> Serialize for dyn Axislike + 'a {
impl Serialize for dyn Axislike + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -158,7 +158,7 @@ mod dualaxislike {

use super::*;

impl<'a> Serialize for dyn DualAxislike + 'a {
impl Serialize for dyn DualAxislike + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -188,7 +188,7 @@ mod tripleaxislike {

use super::*;

impl<'a> Serialize for dyn TripleAxislike + 'a {
impl Serialize for dyn TripleAxislike + '_ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down

0 comments on commit 93f15fc

Please sign in to comment.