File tree Expand file tree Collapse file tree
src/Reloaded.Memory.Benchmarks/Benchmarks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ public void Setup()
3232 }
3333
3434 [ GlobalCleanup ]
35- public bool Cleanup ( ) => new Reloaded . Memory . Memory ( ) . Free ( _allocation ) ;
35+ // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
36+ public void Cleanup ( ) => new Reloaded . Memory . Memory ( ) . Free ( _allocation ) ;
3637
3738 [ Benchmark ]
3839 public void FixedArrayPtr_CopyFrom ( ) => _fixedArrayPtr . CopyFrom ( _sourceArray , ArrayLength ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public unsafe class Memory
1919 public void Setup ( ) => Alloc = new Reloaded . Memory . Memory ( ) . Allocate ( DataSize ) ;
2020
2121 [ GlobalCleanup ]
22- public bool Cleanup ( ) => new Reloaded . Memory . Memory ( ) . Free ( Alloc ) ;
22+ // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
23+ public void Cleanup ( ) => new Reloaded . Memory . Memory ( ) . Free ( Alloc ) ;
2324
2425 // Note: We're not unrolling because we don't care for it to run as fast as possible, only that it's zero overhead.
2526
You can’t perform that action at this time.
0 commit comments