From 5a7e27f01082eaeddd59cf57c79ca39c24a43d8f Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sat, 20 Jun 2020 14:56:45 +0100 Subject: [PATCH] data return fix, now returns a Client type --- src/protocols/commands/disconnect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/commands/disconnect.rs b/src/protocols/commands/disconnect.rs index 7bd966c..7242985 100644 --- a/src/protocols/commands/disconnect.rs +++ b/src/protocols/commands/disconnect.rs @@ -4,7 +4,7 @@ use std::sync::Mutex; use std::sync::Arc; use std::collections::HashMap; -pub fn remove_client(clients_ref: &Arc>>, uuid: &String){ +pub fn remove_client(clients_ref: &Arc>>, uuid: &String) -> Client{ let mut clients_hashmap = clients_ref.lock().unwrap(); - clients_hashmap.remove(uuid); + clients_hashmap.remove(uuid).unwrap() }