mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Remove pub visibility on server()
as the argument has a private type. This gets rid of a warning. (#112)
This commit is contained in:
parent
fccad08921
commit
f272843c61
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue