Skip to content

Commit 4ac2b47

Browse files
committed
Use $crate expression to refer to libfuzzer_sys in macros
1 parent 24130bb commit 4ac2b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ macro_rules! fuzz_target {
165165
/// Auto-generated function
166166
#[no_mangle]
167167
pub extern "C" fn rust_fuzzer_test_input(bytes: &[u8]) {
168-
use libfuzzer_sys::arbitrary::{Arbitrary, Unstructured};
168+
use $crate::arbitrary::{Arbitrary, Unstructured};
169169

170170
// Early exit if we don't have enough bytes for the `Arbitrary`
171171
// implementation. This helps the fuzzer avoid exploring all the

0 commit comments

Comments
 (0)