Browse Source

Fully-qualify async_trait macro

contact-taker-before-changing-cfd-state
Thomas Eizinger 3 years ago
parent
commit
45bcc4fe87
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 1
      daemon/src/maker_inc_connections.rs
  2. 2
      xtra_productivity/src/lib.rs
  3. 1
      xtra_productivity/tests/pass/actor_with_generics.rs
  4. 1
      xtra_productivity/tests/pass/can_handle_message.rs

1
daemon/src/maker_inc_connections.rs

@ -3,7 +3,6 @@ use crate::model::cfd::{Order, OrderId};
use crate::model::{BitMexPriceEventId, TakerId};
use crate::{forward_only_ok, maker_cfd, send_to_socket, wire};
use anyhow::{Context as AnyhowContext, Result};
use async_trait::async_trait;
use futures::{StreamExt, TryStreamExt};
use std::collections::HashMap;
use std::io;

2
xtra_productivity/src/lib.rs

@ -65,7 +65,7 @@ pub fn xtra_productivity(_attribute: TokenStream, item: TokenStream) -> TokenStr
type Result = #result_type;
}
#[async_trait]
#[async_trait::async_trait]
impl<#generic_params> xtra::Handler<#message_type> for #actor
where
#additional_bounds

1
xtra_productivity/tests/pass/actor_with_generics.rs

@ -1,4 +1,3 @@
use async_trait::async_trait;
use std::marker::PhantomData;
use xtra_productivity::xtra_productivity;

1
xtra_productivity/tests/pass/can_handle_message.rs

@ -1,4 +1,3 @@
use async_trait::async_trait;
use xtra::spawn::TokioGlobalSpawnExt;
use xtra::Actor;
use xtra_productivity::xtra_productivity;

Loading…
Cancel
Save