Closed sunsided closed 10 months ago
Thanks for the PR! I'll look over the code and merge it in the next day or two!
One thing to mention is that matching on Self::
variants only works on Rust 1.37 and later. You don't have a minimum supported Rust version on it. Seems reasonable to me but I can also change that to use CircuitError::
explicitly.
It was my understanding that "edition=2021" also specified a minimum supported rust version, although followup reading seems to just claim its invalid to specific incompatible edition+msrv pairs.
Thanks for the merge and thanks for the project. 🙂
This PR does three things:
Display
andError
forCircuitError
, allowing it to be used like a regular error.CircuitError
from astruct
to anenum
, making it more extensible.