Skip to content

Commit 7944192

Browse files
committed
fix fuzzer
1 parent c7564b9 commit 7944192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fuzz/generate_corpus.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bson::{doc, Bson, Decimal128};
1+
use bson::{cstr, doc, Bson, Decimal128};
22
use std::{
33
fs,
44
io::{Error, ErrorKind},
@@ -64,7 +64,7 @@ fn generate_type_marker_cases(dir: &Path) -> std::io::Result<()> {
6464
"bool": true,
6565
"date": bson::DateTime::now(),
6666
"null": Bson::Null,
67-
"regex": Bson::RegularExpression(bson::Regex { pattern: "pattern".into(), options: "i".into() }),
67+
"regex": Bson::RegularExpression(bson::Regex { pattern: cstr!("pattern").into(), options: cstr!("i").into() }),
6868
"int32": 123i32,
6969
"timestamp": bson::Timestamp { time: 12345, increment: 1 },
7070
"int64": 123i64,

0 commit comments

Comments
 (0)