Skip to content

Commit

Permalink
pyo3-build-config: derive Clone on BuildFlags
Browse files Browse the repository at this point in the history
This isn't strictly necessary since you can `.0.clone()`. But it is
more ergonomic.
  • Loading branch information
indygreg committed Sep 1, 2021
1 parent 5e8d43c commit 05815bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl FromStr for BuildFlag {
///
/// see Misc/SpecialBuilds.txt in the python source for what these mean.
#[cfg_attr(test, derive(Debug, PartialEq))]
#[derive(Default)]
#[derive(Clone, Default)]
pub struct BuildFlags(pub HashSet<BuildFlag>);

impl BuildFlags {
Expand Down

0 comments on commit 05815bf

Please sign in to comment.