-
Notifications
You must be signed in to change notification settings - Fork 3
Commit 81686fc
Merge #137
137: Bump thiserror from 1.0.6 to 1.0.9 r=MikailBag 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 />
[](https://dependabot.com/compatibility-score.html?dependency-name=thiserror&package-manager=cargo&previous-version=1.0.6&new-version=1.0.9)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@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 your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- 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>File tree
Expand file treeCollapse file tree
2 files changed
+5
-5
lines changedFilter options
- src/invoker
Expand file treeCollapse file tree
2 files changed
+5
-5
lines changed+4-4Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
0 commit comments