From cb896d952b20b8dda891110d3eb048e4927418ae Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Wed, 10 Jul 2024 22:32:26 -0400 Subject: [PATCH] style: clippy + cargo fmt + update .typos.toml --- .typos.toml | 1 + crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.typos.toml b/.typos.toml index 233c0fc41cba..28aa370e20bf 100644 --- a/.typos.toml +++ b/.typos.toml @@ -7,6 +7,7 @@ extend-exclude = [ "**/*.snap", "**/*/CHANGELOG.md", "crates/oxc_linter/fixtures", + "crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs", "crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs", "crates/oxc_linter/src/rules/react/no_unknown_property.rs", "crates/oxc_parser/src/lexer/byte_handlers.rs", diff --git a/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs b/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs index 9093e30854f3..0c310df47c33 100644 --- a/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs +++ b/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs @@ -31,7 +31,7 @@ declare_oxc_lint!( /// Using invalid ARIA attributes can mislead screen readers and other assistive technologies. /// It may cause the accessibility features of the website to fail, making it difficult /// for users with disabilities to use the site effectively. - /// + /// /// This rule includes fixes for some common typos. /// /// ### Example @@ -57,7 +57,7 @@ impl Rule for AriaProps { if let Some(suggestion) = suggestion { ctx.diagnostic_with_fix(diagnostic, |fixer| { fixer.replace(attr.name.span(), suggestion) - }) + }); } else { ctx.diagnostic(diagnostic); }