Skip to content

Commit

Permalink
fixed clippy problems
Browse files Browse the repository at this point in the history
  • Loading branch information
SrTobi committed Mar 16, 2023
1 parent 308bde1 commit 854b496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ use self::relay_pad::RelayPad;
use crate::{ScopedSpawn, SpawnScope};

pub trait RelayScopeLocalSpawning: LocalSpawn + Clone + 'static {
fn spawn_scope_local<'sc>(&self, scope: &RelayScope<'sc>) -> Result<(), SpawnError> {
fn spawn_scope_local(&self, scope: &RelayScope) -> Result<(), SpawnError> {
scope.relay_to_local(self)
}
}

impl<Sp: LocalSpawn + Clone + 'static + ?Sized> RelayScopeLocalSpawning for Sp {}

pub trait RelayScopeSpawning: Spawn + Clone + 'static + Send {
fn spawn_scope<'sc>(&self, scope: &RelayScope<'sc>) -> Result<(), SpawnError> {
fn spawn_scope(&self, scope: &RelayScope) -> Result<(), SpawnError> {
scope.relay_to(self)
}
}
Expand Down

0 comments on commit 854b496

Please sign in to comment.