Skip to content

Commit ec4e5a8

Browse files
committed
derive clone for Fork
1 parent 1cc56fc commit ec4e5a8

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
@@ -1177,10 +1177,12 @@ where
11771177
///
11781178
/// - `fork.by_rc()`: consumes self and shares the fork via `Rc<RefCell>`.
11791179
/// - `fork.by_ref()`: borrows self and shares the fork via `&RefCell`.
1180+
#[derive(Clone)]
11801181
pub struct Fork<S, D> {
11811182
shared: RefCell<ForkShared<S, D>>,
11821183
}
11831184

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

0 commit comments

Comments
 (0)