From bf392d60ed20bd3ef3919ef331f28e55ea03fc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Sun, 12 Mar 2023 16:41:28 +0100 Subject: [PATCH] Tiny cleanup - "in" removed, where doesn't add value. --- Recyclable.Collections/RecyclableList.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index dca2c75..706b33d 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -210,7 +210,7 @@ namespace Recyclable.Collections } [MethodImpl(MethodImplOptions.AggressiveInlining)] - protected static T[][] SetNewLength(in T[][]? source, int minBlockSize, in long newCapacity, ArrayPool memoryBlocksPool, ArrayPool blockArrayPool) + protected static T[][] SetNewLength(in T[][]? source, int minBlockSize, long newCapacity, ArrayPool memoryBlocksPool, ArrayPool blockArrayPool) { const int sourceBlockCount = 0, requiredBlockCount = 1, uninitializedBlocksCount = 2, i = 3; @@ -274,7 +274,7 @@ namespace Recyclable.Collections return newMemoryBlocks; } - protected long EnsureCapacity(in long requestedCapacity) + protected long EnsureCapacity(long requestedCapacity) { T[][] memory = _memoryBlocks; long newCapacity;