Skip to content

Commit fffa802

Browse files
committed
Remove redundant lifetime
`Any` already requires `'static`
1 parent d37a2b2 commit fffa802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema_analysis/src/traits.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ pub trait Coalesce {
4747
/// This trait has a blanket implementation on any [Sized] type implementing [Coalesce].
4848
pub trait CoalesceAny: Coalesce {
4949
/// Merge `other` into `self`. Trait object is returned if merging was unsuccessful.
50-
fn coalesce_any<'a>(&mut self, other: Box<dyn Any + 'a>) -> Option<Box<dyn Any>>;
50+
fn coalesce_any(&mut self, other: Box<dyn Any>) -> Option<Box<dyn Any>>;
5151
}
5252
impl<T: Coalesce + 'static> CoalesceAny for T {
53-
fn coalesce_any<'a>(&mut self, other: Box<dyn Any + 'a>) -> Option<Box<dyn Any>> {
53+
fn coalesce_any(&mut self, other: Box<dyn Any>) -> Option<Box<dyn Any>> {
5454
let other: Self = match other.downcast() {
5555
Ok(downcasted) => *downcasted,
5656
Err(not_downcasted) => return Some(not_downcasted),

0 commit comments

Comments
 (0)