rm unnecessary method call

This commit is contained in:
Ting Sun
2023-03-22 22:15:44 +08:00
committed by Carl Lerche
parent dcaa67388b
commit aab4e39d97
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ async fn main() -> mini_redis::Result<()> {
println!("OK");
}
Command::Publish { channel, message } => {
client.publish(&channel, message.into()).await?;
client.publish(&channel, message).await?;
println!("Publish OK");
}
Command::Subscribe { channels } => {