Skip to content

Commit 8cd383b

Browse files
committed
clippy: turn on ignored_unit_patterns lint
This is mostly a style thing.
1 parent 3725f92 commit 8cd383b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ float_cmp = "warn"
7979
fn_params_excessive_bools = "warn"
8080
from_iter_instead_of_collect = "warn"
8181
if_not_else = "warn"
82-
ignored_unit_patterns = "allow"
82+
ignored_unit_patterns = "warn"
8383
implicit_clone = "warn"
8484
implicit_hasher = "warn"
8585
inconsistent_struct_constructor = "warn"

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ mod tests {
426426

427427
pub fn assert_run_success(self) {
428428
match self.run() {
429-
Ok(_) => {}
429+
Ok(()) => {}
430430
Err(error) => panic!("Unexpected error: {error}"),
431431
}
432432
}

0 commit comments

Comments
 (0)