Skip to content

Commit 9d7eecb

Browse files
Merge pull request #100 from andrewcsmith/derive-clone-for-fork
derive clone for Fork
2 parents f9086f0 + ec4e5a8 commit 9d7eecb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/signal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,10 +1176,12 @@ where
11761176
///
11771177
/// - `fork.by_rc()`: consumes self and shares the fork via `Rc<RefCell>`.
11781178
/// - `fork.by_ref()`: borrows self and shares the fork via `&RefCell`.
1179+
#[derive(Clone)]
11791180
pub struct Fork<S, D> {
11801181
shared: RefCell<ForkShared<S, D>>,
11811182
}
11821183

1184+
#[derive(Clone)]
11831185
struct ForkShared<S, D> {
11841186
signal: S,
11851187
ring_buffer: ring_buffer::Bounded<D>,

0 commit comments

Comments
 (0)