Rustify, I guess.
All checks were successful
Build and push container image / build (push) Successful in 10m26s

This commit is contained in:
toast 2024-02-24 01:03:03 +11:00
parent 2b7f55bdbd
commit 3ccd5ac51d

View File

@ -71,7 +71,7 @@ async fn gs_query_minecraft(server_ip: &str) -> Result<MinecraftQueryData, Error
let data: MinecraftQueryData = req.json().await?; let data: MinecraftQueryData = req.json().await?;
Ok(data) Ok(data)
} else { } else {
return Err(Error::from("Failed to query the server.")); Err(Error::from("Failed to query the server."))
} }
} }
@ -153,10 +153,7 @@ pub async fn gs(
).await?; ).await?;
} }
}, },
_ => { _ => {}
ctx.send(CreateReply::default().content("Game not supported yet.")).await?;
return Ok(());
}
} }
Ok(()) Ok(())