1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

fix warnings

This commit is contained in:
Ubuntu 2022-11-09 17:41:06 +00:00
parent 0675e05e28
commit 8de73c336f
2 changed files with 3 additions and 3 deletions

View file

@ -311,7 +311,9 @@ impl Client {
Err(e) => { Err(e) => {
if let ReadPacketError::ConnectionClosed = e { if let ReadPacketError::ConnectionClosed = e {
info!("Connection closed"); info!("Connection closed");
client.shutdown().await; if let Err(e) = client.shutdown().await {
error!("Error shutting down connection: {:?}", e);
}
return; return;
} }
if IGNORE_ERRORS { if IGNORE_ERRORS {

View file

@ -22,8 +22,6 @@ async fn main() -> anyhow::Result<()> {
.await; .await;
println!("{:?}", e); println!("{:?}", e);
} }
Ok(())
} }
async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> { async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> {