Skip to content

Commit

Permalink
Allow cloning poison::Guards.
Browse files Browse the repository at this point in the history
(makes implementing `Mapped*Guard` easier)
  • Loading branch information
zachs18 committed Dec 5, 2023
1 parent 2da59b8 commit f842d7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sync/poison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl Flag {
}
}

#[derive(Clone)]
pub struct Guard {
panicking: bool,
}
Expand Down

0 comments on commit f842d7b

Please sign in to comment.