Skip to content

Commit

Permalink
Format with new rustfmt that handles let-else
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 10, 2023
1 parent 349dc3f commit f7576d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuzz/fuzz_targets/parse_token_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ fn main() {

fn do_fuzz(bytes: &[u8]) {
let ..=199 = bytes.len() else { return };
let Ok(string) = str::from_utf8(bytes) else { return };
let Ok(string) = str::from_utf8(bytes) else {
return;
};
let _ = string.parse::<proc_macro2::TokenStream>();
}

0 comments on commit f7576d1

Please sign in to comment.