Skip to content

Commit b74969e

Browse files
authored
remove missed implicit convert
1 parent 1c2b21f commit b74969e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/HttpOverrides/src/IPNetwork.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public IPNetwork(IPAddress prefix, int prefixLength)
4545
public bool Contains(IPAddress address) => _network.Contains(address);
4646

4747
/// <inheritdoc cref="System.Net.IPNetwork.Parse(ReadOnlySpan{char})"/>
48-
public static IPNetwork Parse(ReadOnlySpan<char> networkSpan) => System.Net.IPNetwork.Parse(networkSpan);
48+
public static IPNetwork Parse(ReadOnlySpan<char> networkSpan) => new(System.Net.IPNetwork.Parse(networkSpan));
4949

5050
/// <inheritdoc cref="System.Net.IPNetwork.TryParse(ReadOnlySpan{char}, out System.Net.IPNetwork)"/>
5151
public static bool TryParse(ReadOnlySpan<char> networkSpan, [NotNullWhen(true)] out IPNetwork? network)

0 commit comments

Comments
 (0)