From 7427f6c448e3f81095e624a638402474750b223b Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 29 Nov 2024 16:07:13 +0100 Subject: [PATCH] message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- src/rules/button_has_type.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rules/button_has_type.rs b/src/rules/button_has_type.rs index 9e631b33..ac2a614e 100644 --- a/src/rules/button_has_type.rs +++ b/src/rules/button_has_type.rs @@ -68,8 +68,7 @@ impl DiagnosticKind { DiagnosticKind::MissingTypeAttr => { "Add a `type` attribute with a value of `button`, `submit` or `reset`" } - DiagnosticKind::MissingValue => "The value of the `type` attribute must be one of `button`, `submit` or `reset`", - DiagnosticKind::WrongValue => "The value of the `type` attribute must be one of `button`, `submit` or `reset`", + DiagnosticKind::MissingValue | DiagnosticKind::WrongValue => "The value of the `type` attribute must be one of `button`, `submit` or `reset`", } } }