Skip to content

Commit cdd7ae8

Browse files
committed
fix cfg
1 parent 49d9135 commit cdd7ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bson.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ pub struct Regex {
11681168
}
11691169

11701170
impl Regex {
1171-
#[cfg(feature = "serde")]
1171+
#[cfg(any(test, feature = "serde"))]
11721172
pub(crate) fn from_strings(
11731173
pattern: impl AsRef<str>,
11741174
options: impl AsRef<str>,

0 commit comments

Comments
 (0)