FuelLabs / fuel-merkle

Fuel Merkle trees in Rust.
Apache License 2.0
7 stars 5 forks source link

Use `core::convert::Infallible` for non-throwable StorageErrors #97

Closed bvrooman closed 2 years ago

bvrooman commented 2 years ago

I think we should use core::convert::Infallible instead.

The benefit is we have multiple convenience implementations available since its part of stdlib. If we introduce our own infallible type, we need to implement everything ourselves.

_Originally posted by @vlopes11 in https://github.com/FuelLabs/fuel-merkle/pull/94#discussion_r886555739_