From: Jack Moffitt Date: Sun, 7 Jul 2024 19:18:43 +0000 (-0500) Subject: Remove pub visibility on `server()` as the argument has a private type. This gets... X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=f272843c6122ef7496b6f3638b75ecbc30db804f;p=rust_exercises.git Remove pub visibility on `server()` as the argument has a private type. This gets rid of a warning. (#112) --- diff --git a/exercises/07_threads/08_client/src/lib.rs b/exercises/07_threads/08_client/src/lib.rs index bee4f91..a934bd3 100644 --- a/exercises/07_threads/08_client/src/lib.rs +++ b/exercises/07_threads/08_client/src/lib.rs @@ -38,7 +38,7 @@ enum Command { }, } -pub fn server(receiver: Receiver) { +fn server(receiver: Receiver) { let mut store = TicketStore::new(); loop { match receiver.recv() {