Skip to content

Commit

Permalink
fix: debug cannot derive on DefaultEffectStream on expl which has (fe…
Browse files Browse the repository at this point in the history
…ature = 'explain')
  • Loading branch information
worapolw committed Nov 14, 2023
1 parent aa85ca8 commit 7166191
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/effector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub trait EffectorStream: Send + Sync {
fn push_effect(&mut self, eft: EffectKind) -> bool;
}

#[derive(Clone)]
pub struct DefaultEffectStream {
done: bool,
res: bool,
Expand All @@ -29,6 +28,18 @@ pub struct DefaultEffectStream {
expl: Vec<usize>,
}

impl Clone for DefaultEffectStream {
fn clone(&self) -> Self {
Self {
done: self.done.clone(),
res: self.res.clone(),
expr: self.expr.clone(),
idx: self.idx.clone(),
cap: self.cap.clone(),
}
}
}

#[derive(Default)]
pub struct DefaultEffector;

Expand Down

0 comments on commit 7166191

Please sign in to comment.