Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 9511939

Browse files
committed
Auto merge of #241 - rust-lang:dependabot/cargo/anyhow-1.0.48, r=JohnTitor
Bump anyhow from 1.0.45 to 1.0.48 Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.45 to 1.0.48. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/anyhow/releases">anyhow's releases</a>.</em></p> <blockquote> <h2>1.0.48</h2> <ul> <li> <p>Include a <code>Debug</code> rendering of lhs and rhs in <code>ensure!</code> messages (<a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/193">#193</a>, <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/194">#194</a>, <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/195">#195</a>, <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/196">#196</a>, <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/197">#197</a>, <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/198">#198</a>)</p> <h3>Example:</h3> <pre lang="rust"><code>ensure!(flags.len() &lt;= 40); </code></pre> <pre lang="rust"><code>ensure!(kind == Kind::File); </code></pre> <p>Before:</p> <pre lang="console"><code>Condition failed: `flags.len() &lt;= 40` Condition failed: `kind == Kind::File` </code></pre> <p>After:</p> <pre lang="console"><code>Condition failed: `flags.len() &lt;= 40` (99 vs 40) Condition failed: `kind == Kind::File` (Symlink vs File) </code></pre> </li> </ul> <h2>1.0.47</h2> <ul> <li>Fixes for implicit format args support</li> </ul> <h2>1.0.46</h2> <ul> <li> <p>Support for implicit format args to match println and other std macros (<a href="https://rust-lang.github.io/rfcs/2795-format-args-implicit-identifiers.html">https://rust-lang.github.io/rfcs/2795-format-args-implicit-identifiers.html</a>)</p> <pre lang="rust"><code>let var = ...; let error = anyhow!(&quot;interpolate {var}&quot;); // equivalent to anyhow!(&quot;interpolate {var}&quot;, var=var) </code></pre> </li> <li> <p>Detect missing fmt arguments at compile time: <code>anyhow!(&quot;{} not found&quot;)</code> (<a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/55">#55</a>)</p> </li> <li> <p>Reduce occurrence of &quot;future cannot be shared between threads safely&quot; in async code using anyhow macros (<a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/186">#186</a>)</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dtolnay/anyhow/commit/f4269d5c90e605be448eb6ec91559749b1f1cfde"><code>f4269d5</code></a> Release 1.0.48</li> <li><a href="https://github.com/dtolnay/anyhow/commit/13f8f0194383ed08ff09d51deabbea00e3a5a8e4"><code>13f8f01</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/198">#198</a> from dtolnay/ensure</li> <li><a href="https://github.com/dtolnay/anyhow/commit/c5068a811803edb6a4ab7d5e4c69b81f1d4eb3dc"><code>c5068a8</code></a> Suppress clippy lints exposed by spans fix</li> <li><a href="https://github.com/dtolnay/anyhow/commit/0b5c75834c52f382a8ec52f5bb03b70a4da0e50f"><code>0b5c758</code></a> Use a real unsafe expr for the unsafe test</li> <li><a href="https://github.com/dtolnay/anyhow/commit/34df4ccb6c2256a7c9d725df4c6b417154840438"><code>34df4cc</code></a> Preserve spans of all punctuation and keyword tokens in ensure</li> <li><a href="https://github.com/dtolnay/anyhow/commit/bf31e76581569e17f8030e9476ab24d376e42dc2"><code>bf31e76</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/197">#197</a> from dtolnay/ensure</li> <li><a href="https://github.com/dtolnay/anyhow/commit/a574356b166889f1e35b9f474f889b62fa31bd79"><code>a574356</code></a> Restore no_std support where String isn't in prelude</li> <li><a href="https://github.com/dtolnay/anyhow/commit/6f3b70e0af900e5173a5ba79e9684b9e7a3ca91f"><code>6f3b70e</code></a> Format with rustfmt 1.4.38</li> <li><a href="https://github.com/dtolnay/anyhow/commit/7d8ba9518437a285b9c9f9f4b2759dea5a4d827b"><code>7d8ba95</code></a> Preallocate space for rendered ensure message</li> <li><a href="https://github.com/dtolnay/anyhow/commit/b75dcd2203df985c900931cc66d14dea1fee7583"><code>b75dcd2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/196">#196</a> from dtolnay/ensure</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.48">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anyhow&package-manager=cargo&previous-version=1.0.45&new-version=1.0.48)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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` 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) </details>
2 parents a472619 + d8f68df commit 9511939

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cargo = "0.57"
1616
crates-io = "0.33" # Keep in sync with version pulled by Cargo
1717
curl = "0.4.41"
1818
env_logger = "0.9"
19-
anyhow = "1.0.44"
19+
anyhow = "1.0.48"
2020
log = "0.4"
2121
semver = "1.0" # Keep in sync with version pulled by Cargo
2222
serde = { version = "1.0.130", features = ["derive"] }

0 commit comments

Comments
 (0)