Skip to content

Commit

Permalink
use net8.0 features, small patch release time
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraveliara committed Jan 19, 2024
1 parent de83c25 commit e97ba6f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Bundles/Bundles.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<IsAotCompatible>true</IsAotCompatible>
<OutputType>Library</OutputType>
<PackageId>Bundles</PackageId>
<VersionPrefix>1.1.0</VersionPrefix>
<VersionPrefix>1.2.0</VersionPrefix>
</PropertyGroup>
</Project>
3 changes: 1 addition & 2 deletions src/Bundles/DictionarySlimDebugView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace Bundles;

Expand All @@ -41,5 +40,5 @@ internal sealed class DictionarySlimDebugView<K, V>
where K : IEquatable<K>
{
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public KeyValuePair<K, V>[] Items => dictionary.ToArray();
public KeyValuePair<K, V>[] Items => [.. dictionary];
}
2 changes: 1 addition & 1 deletion src/Bundles/ValueCollections/ValueStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Bundles.ValueCollections;
/// </summary>
public ValueStack()
{
this.items = Span<T>.Empty;
this.items = [];
this.count = 0;
}

Expand Down
4 changes: 4 additions & 0 deletions tests/Bundles.Tests/Bundles.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
<NoWarn>$(NoWarn);CA1869</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="System.Net.Http"/>
Expand All @@ -14,4 +17,5 @@
<PackageReference Include="xunit.runner.visualstudio" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" PrivateAssets="all"/>
<ProjectReference Include="../../src/Bundles/Bundles.csproj"/>
</ItemGroup>

</Project>

0 comments on commit e97ba6f

Please sign in to comment.