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
3: add expect_macro r=killercup a=vitiral
This PR adds the `expect!` macro, which is an ergonomic replacement for `unwrap()`/`expect()`. The main advantages are:
- Prints the line number/column of the failure with a better error message.
- Can specify format parameters (The type of `expect` is `expect(&str)`, so you have to use `&format!(...)`)
- Error conditions are lazily evaluated.
0 commit comments