diff --git a/content/tokio/tutorial/channels.md b/content/tokio/tutorial/channels.md index 79b65ce5..86f60b79 100644 --- a/content/tokio/tutorial/channels.md +++ b/content/tokio/tutorial/channels.md @@ -221,13 +221,11 @@ let manager = tokio::spawn(async move { // Start receiving messages while let Some(cmd) = rx.recv().await { - use Command::*; - match cmd { - Get { key } => { + Command::Get { key } => { client.get(&key).await; } - Set { key, val } => { + Command::Set { key, val } => { client.set(&key, val).await; } }