Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 1fbba99

Browse files
Merge #1728
1728: Bump thiserror from 1.0.6 to 1.0.9 r=mergify[bot] a=dependabot-preview[bot] Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.6 to 1.0.9. <details> <summary>Release notes</summary> *Sourced from [thiserror's releases](https://github.com/dtolnay/thiserror/releases).* > ## 1.0.9 > - Fix bug affecting display attributes of the form `#[error("{}", some_expression)]` (where the format string is `"{}"` and nothing else, and the value formatted is not just one of the fields from the error) [#53](https://github-redirect.dependabot.com/dtolnay/thiserror/issues/53) > > ## 1.0.8 > - Documentation improvements > > ## 1.0.7 > - Support mixing shorthand and non-shorthand format args ([#47](https://github-redirect.dependabot.com/dtolnay/thiserror/issues/47)) > > ```rust > #[derive(Error, Debug)] > pub enum Error { > #[error("first letter must be lowercase but was {:?}", first_char(.0))] > WrongCase(String), > #[error("invalid index {idx}, expected at least {} and at most {}", .limits.lo, .limits.hi)] > OutOfBounds { idx: usize, limits: Limits }, > } > ``` > > - Add #\[error(transparent)\] attribute for delegating Error impl to one field ([#50](https://github-redirect.dependabot.com/dtolnay/thiserror/issues/50)) > > This is useful for hiding error variants from a library's public error type: > > ```rust > #[derive(Error, Debug)] > #[error(transparent)] // source and Display delegate to ErrorKind > pub struct Error(ErrorKind); > > #[derive(Error, Debug)] > /*private*/ enum ErrorKind { > #[error("...")] > E0, > #[error("...")] > E1(#[source] io::Error), > } > ``` > > And also for enums that need an "anything else" variant; such variants tend not to have their own Display message but just forward through to the underlying error's Display and source: > > ```rust > #[derive(Error, Debug)] > pub enum MyError { > ... > > #[error(transparent)] > Other(#[from] anyhow::Error), // source and Display delegate to anyhow::Error > } > ``` </details> <details> <summary>Commits</summary> - [`1d0b399`](dtolnay/thiserror@1d0b399) Release 1.0.9 - [`20202db`](dtolnay/thiserror@20202db) Remove incorrect detection of simple fmt cases - [`d53be52`](dtolnay/thiserror@d53be52) Release 1.0.8 - [`26a5af1`](dtolnay/thiserror@26a5af1) Update documentation of display attr - [`79b740e`](dtolnay/thiserror@79b740e) Release 1.0.7 - [`05f0a0f`](dtolnay/thiserror@05f0a0f) Add trybuild tests for transparent feature - [`62e8e66`](dtolnay/thiserror@62e8e66) Merge pull request [#50](https://github-redirect.dependabot.com/dtolnay/thiserror/issues/50) from dtolnay/transparent - [`ac61f40`](dtolnay/thiserror@ac61f40) Test transparent attribute - [`c3da163`](dtolnay/thiserror@c3da163) Expand transparent attribute - [`7672b1e`](dtolnay/thiserror@7672b1e) Validate transparent attribute - Additional commits viewable in [compare view](dtolnay/thiserror@1.0.6...1.0.9) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=thiserror&package-manager=cargo&previous-version=1.0.6&new-version=1.0.9)](https://dependabot.com/compatibility-score.html?dependency-name=thiserror&package-manager=cargo&previous-version=1.0.6&new-version=1.0.9) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2 parents dc80a15 + f482910 commit 1fbba99

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)