formatting
All checks were successful
test / unit-test (push) Successful in 1m22s

This commit is contained in:
femsci 2024-03-06 17:16:54 +01:00
parent 49b7f80265
commit e3c1590f81
Signed by: femsci
GPG key ID: 21AC2CC03E5BBCD6

View file

@ -1,4 +1,3 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
namespace Nyanbyte.Sysnya.Binary;
@ -94,8 +93,8 @@ public class BinaryStructMapper<T> where T : notnull, new()
throw new ArgumentException($"Data shorter than minimum expected: expected {_minMemoryLen} bytes; got: {bytes.Length} bytes");
}
T obj = Activator.CreateInstance<T>();
var enumerator = _funcPipeline.GetEnumerator();
var obj = Activator.CreateInstance<T>();
using var enumerator = _funcPipeline.GetEnumerator();
while (enumerator.MoveNext())
{
var func = enumerator.Current;