Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BarionLP committed Jan 17, 2025
1 parent d6adf9b commit 0e5d994
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Barion
Copyright (c) 2024-2025 Barion

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/Operations/Conversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ partial struct Option<TValue>
public Result<TValue> ToResult(Func<Exception> error)
=> _hasValue ? _value : error();

// [OverloadResolutionPriority(1)] //cannot have this
// [OverloadResolutionPriority(1)] //would prevent ToResult(Func) from being called
public Result<TValue, TError> ToResult<TError>(TError error)
=> _hasValue ? _value : error;
public Result<TValue, TError> ToResult<TError>(Func<TError> error)
Expand Down
2 changes: 1 addition & 1 deletion test/Ametrin.Optional.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TUnit" Version="0.6.43" />
<PackageReference Include="TUnit" Version="0.6.117" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions testing/TUnit/Ametrin.Optional.Testing.TUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="TUnit.Assertions" Version="0.6.43" />
<PackageReference Include="Ametrin.Optional" Version="0.1.0" />
<PackageReference Include="TUnit.Assertions" Version="0.6.117" />
<PackageReference Include="Ametrin.Optional" Version="0.1.2" />
</ItemGroup>

</Project>

0 comments on commit 0e5d994

Please sign in to comment.