Remove pub visibility on `server()` as the argument has a private type. This gets...
authorJack Moffitt <jack@metajack.im>
Sun, 7 Jul 2024 19:18:43 +0000 (14:18 -0500)
committerGitHub <noreply@github.com>
Sun, 7 Jul 2024 19:18:43 +0000 (21:18 +0200)
exercises/07_threads/08_client/src/lib.rs

index bee4f91..a934bd3 100644 (file)
@@ -38,7 +38,7 @@ enum Command {
     },
 }
 
-pub fn server(receiver: Receiver<Command>) {
+fn server(receiver: Receiver<Command>) {
     let mut store = TicketStore::new();
     loop {
         match receiver.recv() {