fix(result): Result<T> hash collision
A success result wrapping a value whose GetHashCode is 0 (e.g. Result<int> with 0) collides with a failure result, both hashing to 0.
This commit is contained in:
parent
06a40184ee
commit
fbbe94bfa8
3 changed files with 75 additions and 3 deletions
|
|
@ -48,6 +48,7 @@ To have a consistent experience across all packages, some public interfaces have
|
|||
### Fixed
|
||||
|
||||
- **request.result:** Correct the namespace in the `Prelude` doc comment (`Geekeey.Extensions.Result` → `Geekeey.Request.Result`)
|
||||
- **request.result:** Fold `IsSuccess` into `Result<T>.GetHashCode` to avoid collisions between a failure and a success value whose hash is `0`
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue