Browse Source
418: Stop contract and rollover from the maker if cannot notify the taker r=da-kami a=klochowicz As for now, we were only logging the communication problem and moving on. 420: Be productive r=klochowicz a=thomaseizinger 422: Bump rust_decimal from 1.16.0 to 1.17.0 r=da-kami a=dependabot[bot] Bumps [rust_decimal](https://github.com/paupino/rust-decimal) from 1.16.0 to 1.17.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/paupino/rust-decimal/commits">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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) </details> Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com> Co-authored-by: Thomas Eizinger <thomas@eizinger.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>contact-taker-before-changing-cfd-state
committed by
GitHub
9 changed files with 118 additions and 114 deletions
@ -0,0 +1,27 @@ |
|||
use std::marker::PhantomData; |
|||
use xtra_productivity::xtra_productivity; |
|||
|
|||
struct ActorWithParam<C> { |
|||
ty: PhantomData<C>, |
|||
} |
|||
|
|||
struct DummyMessage; |
|||
|
|||
trait Foo {} |
|||
|
|||
impl<C: 'static + Send> xtra::Actor for ActorWithParam<C> {} |
|||
|
|||
// Dummy actor, xtra::Handler and xtra::Message impls generated by xtra_productivity
|
|||
#[xtra_productivity] |
|||
impl<C> ActorWithParam<C> |
|||
where |
|||
C: Foo, |
|||
{ |
|||
pub fn handle_dummy_message(&mut self, _message: DummyMessage) { |
|||
assert_impls_foo::<C>(); |
|||
} |
|||
} |
|||
|
|||
fn assert_impls_foo<T: Foo>() {} |
|||
|
|||
fn main() {} |
Loading…
Reference in new issue