Skip to content

Commit 1da12e3

Browse files
committed
fix cfg
1 parent 8b96eea commit 1da12e3

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
@@ -1138,7 +1138,7 @@ pub struct Regex {
11381138
}
11391139

11401140
impl Regex {
1141-
#[cfg(feature = "serde")]
1141+
#[cfg(any(test, feature = "serde"))]
11421142
pub(crate) fn from_strings(
11431143
pattern: impl AsRef<str>,
11441144
options: impl AsRef<str>,

0 commit comments

Comments
 (0)