4 ms·
> try_into().unwrap() is just way too unwieldy. I always carry with me a tiu() alias method for exactly that reason (in a TryIntoUnwrap trait implemented for e
by gspr 4y ago
> try_into().unwrap() is just way too unwieldy.
I always carry with me a tiu() alias method for exactly that reason (in a TryIntoUnwrap trait implemented for every pair of types which implements TryInto).
- arcticbull 4y agoYou can also do try_from()? if you impl From<TryIntError> on your local error type.