Skip to content

Commit

Permalink
Don't use "in" for Equals
Browse files Browse the repository at this point in the history
This won't correctly override/replace the one generated for it being a record type
  • Loading branch information
Turnerj committed Apr 2, 2022
1 parent 1cbefa8 commit 42456d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TurnerSoftware.DinoDNS/Protocol/ResourceRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public readonly record struct ResourceRecord(
ReadOnlyMemory<byte> Data
) : IEquatable<ResourceRecord>
{
public bool Equals(in ResourceRecord other) =>
public bool Equals(ResourceRecord other) =>
DomainName.Equals(other.DomainName) &&
Type == other.Type &&
Class == other.Class &&
Expand Down

0 comments on commit 42456d5

Please sign in to comment.