Skip to content

Commit

Permalink
chore(deps): update delegate requirement from 0.10.0 to 0.11.0 (#736)
Browse files Browse the repository at this point in the history
Updates the requirements on
[delegate](https://github.com/kobzol/rust-delegate) to permit the latest
version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Kobzol/rust-delegate/blob/main/CHANGELOG.md">delegate's
changelog</a>.</em></p>
<blockquote>
<h1>0.11.0 (4. 12. 2023)</h1>
<ul>
<li>Allow delegating an associated function (not just a method).</li>
</ul>
<pre lang="rust"><code>struct A {}
impl A {
    fn foo(a: u32) -&gt; u32 {
        a + 1
    }
}
<p>struct B;
impl B {
delegate! {
to A {
fn foo(a: u32) -&gt; u32;
}
}
}
</code></pre></p>
<h1>0.10.0 (29. 6. 2023)</h1>
<ul>
<li>Allow specifying certain attributes (e.g. <code>#[into]</code> or
<code>#[unwrap]</code>) on delegated segments.
The attribute will then be applied to all methods in that segment
(unless it is overwritten on the method itself).</li>
</ul>
<pre lang="rust"><code>delegate! {
  #[unwrap]
  to self.inner {
    fn foo(&amp;self) -&gt; u32; // calls self.inner.foo().unwrap()
    fn bar(&amp;self) -&gt; u32; // calls self.inner.bar().unwrap()
  }
}
</code></pre>
<ul>
<li>Add new <code>#[unwrap]</code> method modifier. Adding it on top of
a delegated method will cause the generated
code to <code>.unwrap()</code> the result.</li>
</ul>
<pre lang="rust"><code>#[unwrap]
fn foo(&amp;self) -&gt; u32;  // foo().unwrap()
</code></pre>
<ul>
<li>Add new <code>#[through(&lt;trait&gt;)]</code> method modifier.
Adding it on top of a delegated method will cause the generated
code to call the method through the provided trait using <a
href="https://doc.rust-lang.org/reference/expressions/call-expr.html#disambiguating-function-calls">UFCS</a>.</li>
</ul>
<pre lang="rust"><code>#[through(MyTrait)]
delegate! {
  to &amp;self.inner {
    #[through(MyTrait)]
    fn foo(&amp;self) -&gt; u32;  // MyTrait::foo(&amp;self.inner)
  }
}
</code></pre>
<ul>
<li>Removed <code>#[try_into(unwrap)]</code>. It can now be replaced
with the combination of <code>#[try_into]</code> and
<code>#[unwrap]</code>:</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/kobzol/rust-delegate/commits">compare
view</a></li>
</ul>
</details>
<br />


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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Dec 11, 2023
1 parent 2efcfb3 commit c0d61c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ lazy_static = "1.4.0"
petgraph = { version = "0.6.3", default-features = false }
context-iterators = "0.2.0"
serde_json = "1.0.97"
delegate = "0.10.0"
delegate = "0.11.0"
rustversion = "1.0.14"
paste = "1.0"
strum = "0.25.0"
Expand Down

0 comments on commit c0d61c7

Please sign in to comment.