small code cleanup
no functional changes, just minor restructuring
This commit is contained in:
parent
f64882b091
commit
fc34b1e328
6 changed files with 121 additions and 127 deletions
|
|
@ -1,11 +1,11 @@
|
|||
use std::io::{Result};
|
||||
use std::io::Result;
|
||||
use std::net::{IpAddr, ToSocketAddrs};
|
||||
use std::str::FromStr;
|
||||
use std::{env};
|
||||
use std::env;
|
||||
|
||||
use mcstatusface::http::{HttpServer, StatusCode};
|
||||
use mcstatusface::{MinecraftStatus};
|
||||
use mcstatusface::dns::{resolve_srv_port};
|
||||
use mcstatusface::status::MinecraftStatus;
|
||||
use mcstatusface::dns::resolve_srv_port;
|
||||
|
||||
#[derive(serde::Serialize)]
|
||||
struct MinecraftStatusResponse<'a> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue