Skip to content

Commit

Permalink
Cleanup (rustfmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsxrwscjpzdzwpxaujrr committed Nov 22, 2024
1 parent 9e73977 commit 597f7eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/grammers-client/examples/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ async fn handle_update(client: Client, update: Update) -> Result {
match update {
Update::NewMessage(message) if !message.outgoing() => {
let chat = message.chat();
println!("Responding to {}", chat.name().unwrap_or(&format!("id {}", chat.id())));
println!(
"Responding to {}",
chat.name().unwrap_or(&format!("id {}", chat.id()))
);
client.send_message(&chat, message.text()).await?;
}
_ => {}
Expand Down

0 comments on commit 597f7eb

Please sign in to comment.