diff --git a/src/Ramstack.HtmxToolkit/Collections/SmallDictionaryDebugView.cs b/src/Ramstack.HtmxToolkit/Collections/SmallDictionaryDebugView.cs index 176c98f..37200c3 100644 --- a/src/Ramstack.HtmxToolkit/Collections/SmallDictionaryDebugView.cs +++ b/src/Ramstack.HtmxToolkit/Collections/SmallDictionaryDebugView.cs @@ -35,7 +35,6 @@ public DictionaryEntry[] Items /// /// Represents a class that contains the key/value pairs of the dictionary entry for displaying by a debugger. /// - /// The key of the entry. /// The value of the entry. [DebuggerDisplay("{Value}", Name = "[{Key}]")] public readonly struct DictionaryEntry(TKey key, TValue value) diff --git a/src/Ramstack.HtmxToolkit/HtmxResponse.cs b/src/Ramstack.HtmxToolkit/HtmxResponse.cs index d404623..83cdaa5 100644 --- a/src/Ramstack.HtmxToolkit/HtmxResponse.cs +++ b/src/Ramstack.HtmxToolkit/HtmxResponse.cs @@ -256,7 +256,7 @@ public HtmxResponse StopPolling(bool condition) private static HtmxResponse SetHeader(HtmxResponse response, string key, string value) { - response._response.Headers[key] = new StringValues(value); + response._response.Headers[key] = [with(value)]; return response; } diff --git a/src/Ramstack.HtmxToolkit/PendingEvents.cs b/src/Ramstack.HtmxToolkit/PendingEvents.cs index 55e2a8e..233f978 100644 --- a/src/Ramstack.HtmxToolkit/PendingEvents.cs +++ b/src/Ramstack.HtmxToolkit/PendingEvents.cs @@ -39,7 +39,7 @@ public void AddEvents(HtmxTriggerTiming timing, IReadOnlyDictionary _receive ??= new Dictionary(), HtmxTriggerTiming.AfterSwap => _afterSwap ??= new Dictionary(), - _ => _afterSettle ??= new Dictionary(), + _ => _afterSettle ??= new Dictionary() }; foreach (var (k, v) in events) @@ -68,7 +68,7 @@ public void AddEvents(HtmxTriggerTiming timing, IReadOnlyDictionary _receive, HtmxTriggerTiming.AfterSwap => _afterSwap, - _ => _afterSettle, + _ => _afterSettle }; } diff --git a/src/Ramstack.HtmxToolkit/Properties/JetBrains.Annotations.cs b/src/Ramstack.HtmxToolkit/Properties/JetBrains.Annotations.cs index 81ebeae..2e16b23 100644 --- a/src/Ramstack.HtmxToolkit/Properties/JetBrains.Annotations.cs +++ b/src/Ramstack.HtmxToolkit/Properties/JetBrains.Annotations.cs @@ -155,7 +155,7 @@ internal enum ImplicitUseKindFlags /// InstantiatedWithFixedConstructorSignature = 4, /// Indicates implicit instantiation of a type. - InstantiatedNoFixedConstructorSignature = 8, + InstantiatedNoFixedConstructorSignature = 8 } /// diff --git a/tests/Ramstack.HtmxToolkit.Tests/PendingEventsTests.cs b/tests/Ramstack.HtmxToolkit.Tests/PendingEventsTests.cs index 954b2b5..46e1dae 100644 --- a/tests/Ramstack.HtmxToolkit.Tests/PendingEventsTests.cs +++ b/tests/Ramstack.HtmxToolkit.Tests/PendingEventsTests.cs @@ -1,5 +1,3 @@ -using System.Text.Json.Nodes; - using Microsoft.AspNetCore.Http; namespace Ramstack.HtmxToolkit.Tests;