Skip to content

Commit

Permalink
Remove unneeded CompoundedClone::clone_arc
Browse files Browse the repository at this point in the history
  • Loading branch information
tiram88 committed Jan 28, 2024
1 parent 7bbb705 commit 22acaa0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions notify/src/subscription/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,13 @@ impl<T: Eq + Any> DynEq for T {
}

pub trait CompoundedClone {
fn clone_arc(&self) -> Arc<dyn Compounded>;
fn clone_box(&self) -> Box<dyn Compounded>;
}

impl<T> CompoundedClone for T
where
T: 'static + Compounded + Clone,
{
fn clone_arc(&self) -> Arc<dyn Compounded> {
Arc::new(self.clone())
}

fn clone_box(&self) -> Box<dyn Compounded> {
Box::new(self.clone())
}
Expand Down

0 comments on commit 22acaa0

Please sign in to comment.