diff --git a/Cargo.toml b/Cargo.toml index 885bb53..a927ae7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,9 +45,9 @@ unused_qualifications = "warn" unused_results = "warn" [lints.clippy] -all = "warn" -pedantic = "warn" -style = "warn" +all = { level = "warn", priority = -1 } +pedantic = { level = "warn", priority = -1 } +style = { level = "warn", priority = -1 } missing_errors_doc = "allow" module_name_repetitions = "allow" diff --git a/tests/readme.rs b/tests/readme.rs index cae4ad1..0f2bd68 100644 --- a/tests/readme.rs +++ b/tests/readme.rs @@ -14,9 +14,12 @@ fn readme_example_is_correct() { let example = example["```rust".len()..example.len() - "```".len()] .trim() .replace("\r\n", "\n"); - let test_contents = TEST_CONTENTS["#![cfg(feature = \"futures\")]".len()..] + let test_contents = TEST_CONTENTS + .splitn(3, '\n') + .last() + .unwrap() .split("#[ignore]") - .map(|s| s.trim()) + .map(str::trim) .collect::>() .join("\n") .replace("\r\n", "\n"); diff --git a/tests/readme_example.rs b/tests/readme_example.rs index a9b9b54..aaae720 100644 --- a/tests/readme_example.rs +++ b/tests/readme_example.rs @@ -1,4 +1,5 @@ #![cfg(feature = "futures")] +#![allow(clippy::unused_async)] use expecters::prelude::*;