You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the error type of semver in my project via thiserror like so:
#[derive(Debug, thiserror::Error,PartialEq)]pubenumParseError{/// An invalid semantic version string////// This error occurs when a semantic version cannot be parsed from a string#[error("Invalid semver: {0} ({1:?})")]InvalidSemver(String,#[source] semver::Error),}
However, this is not possible due to semver::Error does not implement PartialEq. Manually implementing that is a pain since I have a many other error variants.
Another thing that I thought about is using semver::ErrorKind but that's not exposed.
Can you help me with the case above? I'm also happy to submit a PR. LMK!
The text was updated successfully, but these errors were encountered:
Hello!
I would like to use the error type of
semver
in my project viathiserror
like so:However, this is not possible due to
semver::Error
does not implementPartialEq
. Manually implementing that is a pain since I have a many other error variants.Another thing that I thought about is using
semver::ErrorKind
but that's not exposed.Can you help me with the case above? I'm also happy to submit a PR. LMK!
The text was updated successfully, but these errors were encountered: