diff --git a/src/Polly/Caching/Ttl.cs b/src/Polly/Caching/Ttl.cs index 6521e0ad54c..5ec87a5d2c4 100644 --- a/src/Polly/Caching/Ttl.cs +++ b/src/Polly/Caching/Ttl.cs @@ -4,7 +4,9 @@ namespace Polly.Caching; /// /// Represents a time-to-live for a given cache item. /// +#pragma warning disable CA1815 //Override equals and operator equals on value types public struct Ttl +#pragma warning restore CA1815 { /// /// The timespan for which this cache-item remains valid. diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 724f7d26e46..2356c4e2404 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,7 +7,7 @@ Library 70 true - $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1815;CA1816;CA2211 + $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037;