mirror of https://github.com/ppy/osu
Fix enumerable not being consumed
This commit is contained in:
parent
efaf07dbc8
commit
4708cb7317
|
@ -2,6 +2,7 @@
|
|||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using BenchmarkDotNet.Engines;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
|
||||
|
@ -36,7 +37,7 @@ public void BenchmarkToModDifficultyAdjust()
|
|||
[Benchmark]
|
||||
public void BenchmarkGetAllMods()
|
||||
{
|
||||
ruleset.GetAllMods();
|
||||
ruleset.GetAllMods().Consume(new Consumer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue