From c40e988d19b302a8ce86db325a3f51df814ae952 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Mon, 6 Apr 2026 16:45:50 -0700 Subject: [PATCH] unneeded_wildcard_pattern.rs: fix typo (rathter -> rather) --- clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs b/clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs index b858c6130bb7..897d720036ee 100644 --- a/clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs +++ b/clippy_lints/src/misc_early/unneeded_wildcard_pattern.rs @@ -41,7 +41,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, pat: &Pat) { .enumerate() .last() { - // Unlike the tuples above, structs have patfields rathter than patterns, and separate out the + // Unlike the tuples above, structs have patfields rather than patterns, and separate out the // `..` into a separate parameter. Also, the `..` can only be at the end of the pattern. let singlewild = patfields.len() - right_index - 1; span_lint(cx, patfields[singlewild].span.until(*rspan), right_index == 0);