move signature outside the spawning

this allows us to actually move stuff into the async block
and we can drop the 'static life-time.
This commit is contained in:
Jeb Rosen
2020-02-17 22:34:18 +01:00
committed by Igor Galić
parent a010025074
commit 8aa99cea35
3 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -81,10 +81,10 @@ impl Follow {
/// from -> The one sending the follow request
/// target -> The target of the request, responding with Accept
pub fn accept_follow<A: Signer + IntoId + Clone + Sync, B: Clone + AsActor<T> + IntoId, T>(
pub fn accept_follow<A: Signer + IntoId + Clone, B: Clone + AsActor<T> + IntoId, T>(
conn: &Connection,
from: &B,
target: &'static A,
target: &A,
follow: FollowAct,
from_id: i32,
target_id: i32,