From 7cd60721b4f7492c1a39069a5fdb968d9273c697 Mon Sep 17 00:00:00 2001 From: ZLoo Date: Fri, 19 Jul 2024 01:24:54 +0300 Subject: [PATCH] Fix warning CA1815 (#2211) --- src/Polly/Caching/Ttl.cs | 2 ++ src/Polly/Polly.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;