We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use thiserror::Error; #[derive(Error, Debug)] #[error("{0}")] pub enum Error { Io(io::Error), Json(serde_json::Error), Regex(regex::Error), }
^ this should be treated as equivalent to:
#[derive(Error, Debug)] pub enum Error { #[error("{0}")] Io(io::Error), #[error("{0}")] Json(serde_json::Error), #[error("{0}")] Regex(regex::Error), }
The text was updated successfully, but these errors were encountered:
This works, but what if I want to customize one of the variants?
Sorry, something went wrong.
affix
enum
Successfully merging a pull request may close this issue.
^ this should be treated as equivalent to:
The text was updated successfully, but these errors were encountered: