diff --git a/schema_analysis/src/traits.rs b/schema_analysis/src/traits.rs index d6ce827..28ea87f 100644 --- a/schema_analysis/src/traits.rs +++ b/schema_analysis/src/traits.rs @@ -47,10 +47,10 @@ pub trait Coalesce { /// This trait has a blanket implementation on any [Sized] type implementing [Coalesce]. pub trait CoalesceAny: Coalesce { /// Merge `other` into `self`. Trait object is returned if merging was unsuccessful. - fn coalesce_any<'a>(&mut self, other: Box) -> Option>; + fn coalesce_any(&mut self, other: Box) -> Option>; } -impl<'a, T: Coalesce + 'a> CoalesceAny for T { - fn coalesce_any(&mut self, other: Box) -> Option> { +impl CoalesceAny for T { + fn coalesce_any(&mut self, other: Box) -> Option> { let other: Self = match other.downcast() { Ok(downcasted) => *downcasted, Err(not_downcasted) => return Some(not_downcasted),