anchor
anchor copied to clipboard
Implement TryFromIntError conversion for AnchorError
I noticed it was a bit painful to cast integers with try_into
and try_from
because you have to either unwrap()
or map_err(||)
.
What about implementing TryFromIntError
for Error
so we can use the ?
operator?
@CanardMandarin is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
Sure! I have added a test case.
My bad, I should have thought about it!
Feel free to modify the changelog entry if the description is not clear.