Skip to content

Commit

Permalink
Remove pub visibility on server() as the argument has a private typ…
Browse files Browse the repository at this point in the history
…e. This gets rid of a warning. (#112)
  • Loading branch information
metajack authored Jul 7, 2024
1 parent fccad08 commit f272843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/07_threads/08_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f272843

Please sign in to comment.