Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TehPers committed Nov 26, 2024
1 parent 1026157 commit e2f5cc2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 5 additions & 2 deletions tests/readme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>()
.join("\n")
.replace("\r\n", "\n");
Expand Down
1 change: 1 addition & 0 deletions tests/readme_example.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg(feature = "futures")]
#![allow(clippy::unused_async)]

use expecters::prelude::*;

Expand Down

0 comments on commit e2f5cc2

Please sign in to comment.