We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d37a2b2 commit fffa802Copy full SHA for fffa802
schema_analysis/src/traits.rs
@@ -47,10 +47,10 @@ pub trait Coalesce {
47
/// This trait has a blanket implementation on any [Sized] type implementing [Coalesce].
48
pub trait CoalesceAny: Coalesce {
49
/// 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>>;
+ fn coalesce_any(&mut self, other: Box<dyn Any>) -> Option<Box<dyn Any>>;
51
}
52
impl<T: Coalesce + 'static> CoalesceAny for T {
53
- fn coalesce_any<'a>(&mut self, other: Box<dyn Any + 'a>) -> Option<Box<dyn Any>> {
+ fn coalesce_any(&mut self, other: Box<dyn Any>) -> Option<Box<dyn Any>> {
54
let other: Self = match other.downcast() {
55
Ok(downcasted) => *downcasted,
56
Err(not_downcasted) => return Some(not_downcasted),
0 commit comments