We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82e705 commit 9e4c763Copy full SHA for 9e4c763
1 file changed
src/Shouldly/Internals/EqualityComparer.cs
@@ -38,7 +38,9 @@ public bool Equals(T? x, T? y)
38
y.TryGetEnumerable(out var enumerableY))
39
{
40
var enumeratorX = enumerableX.GetEnumerator();
41
+ using var enumeratorXDispose = enumeratorX as IDisposable;
42
var enumeratorY = enumerableY.GetEnumerator();
43
+ using var enumeratorYDispose = enumeratorY as IDisposable;
44
var equalityComparer = _innerComparerFactory();
45
46
while (true)
0 commit comments