Skip to content

Commit 3f6cabe

Browse files
authored
Remove pub visibility on server() as the argument has a private type. This gets rid of a warning. (mainmatter#112)
1 parent 2621504 commit 3f6cabe

File tree

1 file changed

+1
-1
lines changed
  • exercises/07_threads/08_client/src

1 file changed

+1
-1
lines changed

exercises/07_threads/08_client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum Command {
3838
},
3939
}
4040

41-
pub fn server(receiver: Receiver<Command>) {
41+
fn server(receiver: Receiver<Command>) {
4242
let mut store = TicketStore::new();
4343
loop {
4444
match receiver.recv() {

0 commit comments

Comments
 (0)