Skip to content

Commit f842d7b

Browse files
committed
Allow cloning poison::Guards.
(makes implementing `Mapped*Guard` easier)
1 parent 2da59b8 commit f842d7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/std/src/sync/poison.rs

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ impl Flag {
5555
}
5656
}
5757

58+
#[derive(Clone)]
5859
pub struct Guard {
5960
panicking: bool,
6061
}

0 commit comments

Comments
 (0)