Skip to content

Commit 12280d7

Browse files
test cleanup
1 parent ceaec6c commit 12280d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/SuperLinq/Collections/UpdatablePriorityQueue.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,8 @@ private bool MoveNextRare()
11351135
/// Gets the element at the current position of the enumerator.
11361136
/// </summary>
11371137
public readonly (TElement Element, TPriority Priority) Current => _current;
1138+
1139+
[ExcludeFromCodeCoverage]
11381140
readonly object IEnumerator.Current => _current;
11391141

11401142
void IEnumerator.Reset()
@@ -1193,7 +1195,7 @@ public PriorityQueueDebugView(UpdatablePriorityQueue<TElement, TPriority>.Unorde
11931195
list.Sort((i1, i2) => _queue.Comparer.Compare(i1.Priority, i2.Priority));
11941196
}
11951197

1196-
return list.ToArray();
1198+
return [.. list];
11971199
}
11981200
}
11991201
}

0 commit comments

Comments
 (0)