Skip to content

Commit 0d6ec9c

Browse files
committed
Minor cleanup
1 parent a7acc89 commit 0d6ec9c

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

Src/FastData.Benchmarks/Benchmarks/FastModBenchmarks.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System.Runtime.CompilerServices;
2-
using System.Runtime.InteropServices;
3-
using System.Runtime.Intrinsics.X86;
42
using Genbox.FastData.Generators.Helpers;
53

64
namespace Genbox.FastData.Benchmarks.Benchmarks;

Src/FastData.Generator.CPlusPlus.Tests/VectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class VectorTests(VectorTests.CPlusPlusContext context) : IClassFixture<V
1414
{
1515
[Theory]
1616
[ClassData(typeof(TestVectorTheoryData))]
17-
public async Task Test<T>(TestVector<T> data)
17+
public async Task Test<T>(TestVector<T> data) where T : notnull
1818
{
1919
GeneratorSpec spec = Generate(id => CPlusPlusCodeGenerator.Create(new CPlusPlusCodeGeneratorConfig(id)), data);
2020
Assert.NotEmpty(spec.Source);

Src/FastData.Generator.CSharp.Tests/VectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class VectorTests
1313
{
1414
[Theory]
1515
[ClassData(typeof(TestVectorTheoryData))]
16-
public async Task Test<T>(TestVector<T> data)
16+
public async Task Test<T>(TestVector<T> data) where T : notnull
1717
{
1818
GeneratorSpec spec = Generate(id => CSharpCodeGenerator.Create(new CSharpCodeGeneratorConfig(id)), data);
1919
Assert.NotEmpty(spec.Source);

Src/FastData.Generator.Rust.Tests/VectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class VectorTests(VectorTests.RustContext context) : IClassFixture<Vector
1414
{
1515
[Theory]
1616
[ClassData(typeof(TestVectorTheoryData))]
17-
public async Task Test<T>(TestVector<T> data)
17+
public async Task Test<T>(TestVector<T> data) where T : notnull
1818
{
1919
GeneratorSpec spec = Generate(id => RustCodeGenerator.Create(new RustCodeGeneratorConfig(id)), data);
2020
Assert.NotEmpty(spec.Source);

Src/FastData/Internal/Analysis/Candidate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ internal sealed class Candidate(IStringHash stringHash, double fitness, int coll
66
{
77
internal double Fitness { get; } = fitness;
88
internal int Collisions { get; } = collisions;
9-
internal double Time { get; set; }
109
internal IStringHash StringHash { get; } = stringHash;
10+
internal double Time { get; set; }
1111
}

Src/FastData/Internal/Analysis/Misc/MinHeap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal sealed class MinHeap<T>(int capacity)
1919
}
2020
}
2121

22-
/// <summary>Adds a new value-item pair. If capacity not reached, inserts and restores heap. If full and value &gt; root, replaces root and restores heap.</summary>
22+
/// <summary>Adds a new value-item pair. If capacity is not reached, inserts and restores heap. If full and value &gt; root, replaces root and restores heap.</summary>
2323
/// <returns>True if the value was better than the best in the heap, otherwise false</returns>
2424
public bool Add(double key, T value)
2525
{

0 commit comments

Comments
 (0)