#![no_main]

use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
    if data == "banana!".as_bytes() {
        panic!("success!");
    }
});

#![no_main]

use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
    if data == b"banana!" {
        panic!("success!");
    }
});

--- 
+++ 
@@ -3,7 +3,7 @@
 use libfuzzer_sys::fuzz_target;
 
 fuzz_target!(|data: &[u8]| {
-    if data == b"banana!" {
+    if data == "banana!".as_bytes() {
         panic!("success!");
     }
 });
Change example to use `str::as_bytes` instead of array comparison

See #90.
