Skip to content

Commit 60d6daf

Browse files
Cleanup.
1 parent 30487c1 commit 60d6daf

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Source/EnumValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Open.Text;
2020
/// <remarks>String parsing or coercion is case sensitive and must be exact.</remarks>
2121
[SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "Already exposes via a property.")]
2222
[SuppressMessage("Design", "CA1000:Do not declare static members on generic types", Justification = "Intentional")]
23+
[SuppressMessage("Roslynator", "RCS1158:Static member in generic type should use a type parameter.")]
2324
[DebuggerDisplay("{GetDebuggerDisplay()}")]
2425
public readonly struct EnumValue<TEnum>
2526
: IEquatable<EnumValue<TEnum>>, IEquatable<EnumValueCaseIgnored<TEnum>>, IEquatable<TEnum>
@@ -253,7 +254,6 @@ public static int Find(Span<Entry> span, ReadOnlySpan<char> name, StringComparis
253254
return middle;
254255
}
255256

256-
257257
return -1;
258258
}
259259
}

Source/Extensions._.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ public static int GetHashCodeFromChars(this ReadOnlySpan<char> chars, StringComp
484484

485485
break;
486486
}
487-
488487
}
489488

490489
return hash + length;

0 commit comments

Comments
 (0)