diff options
Diffstat (limited to 'src/Spv.Generator/ConstantKey.cs')
-rw-r--r-- | src/Spv.Generator/ConstantKey.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Spv.Generator/ConstantKey.cs b/src/Spv.Generator/ConstantKey.cs index e7758b40..9fd25598 100644 --- a/src/Spv.Generator/ConstantKey.cs +++ b/src/Spv.Generator/ConstantKey.cs @@ -3,7 +3,7 @@ using System.Diagnostics.CodeAnalysis; namespace Spv.Generator { - internal struct ConstantKey : IEquatable<ConstantKey> + internal readonly struct ConstantKey : IEquatable<ConstantKey> { private readonly Instruction _constant; @@ -24,7 +24,7 @@ namespace Spv.Generator public override bool Equals([NotNullWhen(true)] object obj) { - return obj is ConstantKey && Equals((ConstantKey)obj); + return obj is ConstantKey key && Equals(key); } } } |