Skip to content

Commit

Permalink
chore: merge types in type bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Sep 26, 2019
1 parent fc6f862 commit 3031132
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions node/src/actors/messages.rs
Expand Up @@ -305,10 +305,8 @@ impl Subscribe {
#[allow(clippy::wrong_self_convention)]
pub fn to_epoch<T, U>(checkpoint: Epoch, addr: Addr<U>, payload: T) -> SubscribeEpoch
where
T: 'static,
T: Send,
U: Actor,
U: Handler<EpochNotification<T>>,
T: 'static + Send,
U: Actor + Handler<EpochNotification<T>>,
U::Context: ToEnvelope<U, EpochNotification<T>>,
{
SubscribeEpoch {
Expand All @@ -323,10 +321,8 @@ impl Subscribe {
#[allow(clippy::wrong_self_convention)]
pub fn to_all<T, U>(addr: Addr<U>, payload: T) -> SubscribeAll
where
T: 'static,
T: Send + Clone,
U: Actor,
U: Handler<EpochNotification<T>>,
T: 'static + Send + Clone,
U: Actor + Handler<EpochNotification<T>>,
U::Context: ToEnvelope<U, EpochNotification<T>>,
{
SubscribeAll {
Expand Down

0 comments on commit 3031132

Please sign in to comment.