cargo thiserror 1.0.10

latest releases: 1.0.60, 1.0.59, 1.0.58...
4 years ago
  • Improve parsing of .0 and .var-style format arguments (#54)

    For example the one here as the argument to the match expression would now be recognized correctly:

    #[derive(Error, Debug)]
    pub enum MyError {
        #[error("{}: {0}", match .1 {
            Some(n) => format!("a variant error occurred with n={}", n),
            None => format!("there was an empty variant error"),
        })]
        Variant(String, Option<usize>),
    }

Don't miss a new thiserror release

NewReleases is sending notifications on new releases.