Skip to content

1.0.10

Compare
Choose a tag to compare
@dtolnay dtolnay released this 28 Jan 19:57
· 401 commits to master since this release
1.0.10
ccbb2ab
  • 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>),
    }