Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sicusa committed Mar 14, 2024
1 parent 6503965 commit c71a9bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion Sia.CodeGenerators/SiaPropertyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace Sia.CodeGenerators;
using Microsoft.CodeAnalysis.Text;

using static Common;
using System.Runtime.CompilerServices;

[Generator]
internal partial class SiaPropertyGenerator : IIncrementalGenerator
Expand Down
8 changes: 4 additions & 4 deletions Sia.Examples/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private static void TestEntityFactory()
Console.WriteLine("== Test Entity Factory ==");

static void DoTest<TStorage>(TStorage storage)
where TStorage : class, IStorage<TestEntity>
where TStorage : class, IStorage<WithId<TestEntity>>
{
Console.WriteLine($"[{storage}]");
var factory = new StorageEntityHost<TestEntity, TStorage>(storage);
Expand All @@ -340,9 +340,9 @@ static void DoTest<TStorage>(TStorage storage)
e5.Dispose();
}

DoTest(new ArrayBufferStorage<TestEntity>(512));
DoTest(new SparseBufferStorage<TestEntity>(512));
DoTest(new HashBufferStorage<TestEntity>());
DoTest(new ArrayBufferStorage<WithId<TestEntity>>(512));
DoTest(new SparseBufferStorage<WithId<TestEntity>>(512));
DoTest(new HashBufferStorage<WithId<TestEntity>>());
}

public static void Run()
Expand Down
1 change: 1 addition & 0 deletions Sia/Auxiliary/PolyList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public interface IPolyList
{
public void HandleHead<THandler>(in THandler handler)
where THandler : IGenericHandler;

public void HandleTail<THandler>(in THandler handler)
where THandler : IGenericHandler<IPolyList>;

Expand Down

0 comments on commit c71a9bc

Please sign in to comment.