Merge pull request #111 from TheBlueMatt/2018-08-full-stack-target-upstream-1
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_update_fee_target.rs
index 4aa727126fab108e7b1be382c4358a2266391c67..eec1d2624598947c36c589c7e113faa2dd9fca17 100644 (file)
@@ -17,11 +17,11 @@ pub fn do_test(data: &[u8]) {
 }
 
 #[cfg(feature = "afl")]
-extern crate afl;
+#[macro_use] extern crate afl;
 #[cfg(feature = "afl")]
 fn main() {
-       afl::read_stdio_bytes(|data| {
-               do_test(&data);
+       fuzz!(|data| {
+               do_test(data);
        });
 }