-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Basic access control #47
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bors r+ |
Build succeeded |
bors bot
added a commit
that referenced
this pull request
Dec 12, 2019
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 /> [![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) 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>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.