We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 455ca39 commit b539d5aCopy full SHA for b539d5a
1 file changed
fuzz/fuzz_targets/parse_token_stream.rs
@@ -59,9 +59,7 @@ fn main() {
59
}
60
61
fn do_fuzz(bytes: &[u8]) {
62
- if bytes.len() < 200 {
63
- if let Ok(string) = str::from_utf8(bytes) {
64
- _ = string.parse::<proc_macro2::TokenStream>();
65
- }
66
+ let ..=199 = bytes.len() else { return };
+ let Ok(string) = str::from_utf8(bytes) else { return };
+ let _ = string.parse::<proc_macro2::TokenStream>();
67
0 commit comments