From 05815bf8610b9328a3ff514e4d6a50143078bbb2 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Tue, 31 Aug 2021 18:47:58 -0700 Subject: [PATCH] pyo3-build-config: derive Clone on BuildFlags This isn't strictly necessary since you can `.0.clone()`. But it is more ergonomic. --- pyo3-build-config/src/impl_.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index 22add7f0..04b8da33 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -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); impl BuildFlags {