Skip to content

Commit

Permalink
Use $crate expression to refer to libfuzzer_sys in macros
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed May 26, 2021
1 parent 24130bb commit 4ac2b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ macro_rules! fuzz_target {
/// Auto-generated function
#[no_mangle]
pub extern "C" fn rust_fuzzer_test_input(bytes: &[u8]) {
use libfuzzer_sys::arbitrary::{Arbitrary, Unstructured};
use $crate::arbitrary::{Arbitrary, Unstructured};

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

0 comments on commit 4ac2b47

Please sign in to comment.