Skip to content

Commit 8b336dd

Browse files
committed
Make name() return value lowercase for consistency
1 parent 7a11f07 commit 8b336dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lint/rules/spacing.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl SpReservedRule {
114114

115115
impl Rule for SpReservedRule {
116116
fn name() -> &'static str {
117-
"SP_RESERVED"
117+
"sp_reserved"
118118
}
119119
fn description() -> &'static str {
120120
"Missing space around reserved words"
@@ -270,7 +270,7 @@ impl SpBinopRule {
270270
}
271271
impl Rule for SpBinopRule {
272272
fn name() -> &'static str {
273-
"SP_BINOP"
273+
"sp_binop"
274274
}
275275
fn description() -> &'static str {
276276
"Missing space around binary operator"
@@ -330,7 +330,7 @@ impl SpTernaryRule {
330330
}
331331
impl Rule for SpTernaryRule {
332332
fn name() -> &'static str {
333-
"SP_TERNARY"
333+
"sp_ternary"
334334
}
335335
fn description() -> &'static str {
336336
"Missing space around ? or : in conditional expression"
@@ -725,7 +725,7 @@ pub struct SpPtrDeclOptions {}
725725

726726
impl Rule for SpPtrDeclRule {
727727
fn name() -> &'static str {
728-
"SP_PTRDECL"
728+
"sp_ptrdecl"
729729
}
730730
fn description() -> &'static str {
731731
"There should be a space between type and * marking a pointer"
@@ -815,7 +815,7 @@ impl NspPtrDeclArgs {
815815

816816
impl Rule for NspPtrDeclRule {
817817
fn name() -> &'static str {
818-
"NSP_PTRDECL"
818+
"nsp_ptrdecl"
819819
}
820820
fn description() -> &'static str {
821821
"There should be no space after the * marking a pointer in a declaration"

0 commit comments

Comments
 (0)