diff --git a/src/main.rs b/src/main.rs index 3ef65ff..6b96259 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ async fn main() { let server = Server { clients: Arc::new(Mutex::new(HashMap::new())), - docker: docker, + docker, id: 0, }; diff --git a/src/server.rs b/src/server.rs index 69f2bf7..aa3d981 100644 --- a/src/server.rs +++ b/src/server.rs @@ -161,7 +161,7 @@ impl Server { .expect("Client not found"); let output = Arc::new(Mutex::new(output)); client.io = Some(OutputInputPair { - input: input, + input, output: Arc::clone(&output), }); let session_handle = Arc::new(Mutex::new(session_handle.clone()));