From de8b2af0d760fe79b8ab736667a59b60807e3004 Mon Sep 17 00:00:00 2001 From: Jerel Unruh Date: Tue, 21 Jul 2020 01:08:45 -0500 Subject: [PATCH] Add clone() back to request_id to fix compiler error in juniper_warp (#712) This is the last item required to close #705 --- juniper_warp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper_warp/src/lib.rs b/juniper_warp/src/lib.rs index d07b1916..0a3b046e 100644 --- a/juniper_warp/src/lib.rs +++ b/juniper_warp/src/lib.rs @@ -498,7 +498,7 @@ pub mod subscriptions { let state = Arc::new(SubscriptionState { should_stop: AtomicBool::new(false), }); - subscription_states.insert(request_id, state.clone()); + subscription_states.insert(request_id.clone(), state.clone()); let ws_tx = ws_tx.clone();