Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update delegate requirement from 0.10.0 to 0.11.0 (#736)
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) -> u32 { a + 1 } } <p>struct B; impl B { delegate! { to A { fn foo(a: u32) -> 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(&self) -> u32; // calls self.inner.foo().unwrap() fn bar(&self) -> 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(&self) -> u32; // foo().unwrap() </code></pre> <ul> <li>Add new <code>#[through(<trait>)]</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 &self.inner { #[through(MyTrait)] fn foo(&self) -> u32; // MyTrait::foo(&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