anchor icon indicating copy to clipboard operation
anchor copied to clipboard

Implement TryFromIntError conversion for AnchorError

Open CanardMandarin opened this issue 9 months ago • 3 comments

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 avatar May 08 '24 10:05 CanardMandarin

@CanardMandarin is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 08 '24 10:05 vercel[bot]

Sure! I have added a test case.

CanardMandarin avatar May 10 '24 07:05 CanardMandarin

My bad, I should have thought about it!

CanardMandarin avatar May 11 '24 11:05 CanardMandarin

Feel free to modify the changelog entry if the description is not clear.

CanardMandarin avatar May 13 '24 21:05 CanardMandarin