From 73ae4fec603f3edfc2736ea1ef7f17b0a58b5cf6 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 14 Apr 2025 05:11:27 -0400 Subject: [PATCH] Make Clippy happy --- Cargo.toml | 1 + afl/examples/cmplog.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5eec8e316..46280ba67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,5 @@ check-cfg = ["cfg(fuzzing)"] [workspace.lints.clippy] pedantic = { level = "warn", priority = -1 } disallowed-macros = "allow" +format-push-string = "allow" missing-panics-doc = "allow" diff --git a/afl/examples/cmplog.rs b/afl/examples/cmplog.rs index 55e0ae6dc..d3023207f 100644 --- a/afl/examples/cmplog.rs +++ b/afl/examples/cmplog.rs @@ -20,11 +20,11 @@ fn main() { if data[4..8] != 0x6969_4141_i32.to_le_bytes() { return; - }; + } if data[8..12] != *b"1234" || data[12..16] != *b"EFGH" { return; - }; + } let slice = &data[16..]; let match_string = "Hello, world!";