From 824c4d34c0d9a0c419b404e4772b052255a48ae7 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Fri, 13 Jan 2023 01:31:57 +0200 Subject: [PATCH] Add proper MSRV to Cargo.toml --- Cargo.toml | 4 +--- examples/minecraft.rs | 2 +- examples/tf2.rs | 2 +- src/protocols/valve/protocol.rs | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 231f65e..989db67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,7 @@ documentation = "https://docs.rs/gamedig/latest/gamedig/" repository = "https://github.com/CosminPerRam/rust-gamedig" readme = "README.md" keywords = ["server", "query", "game", "check", "status"] - -[package.metadata] -msrv = "1.58.1" +rust-version = "1.56.1" [dependencies] bzip2-rs = "0.1.2" # for compression diff --git a/examples/minecraft.rs b/examples/minecraft.rs index f675508..ad1b98e 100644 --- a/examples/minecraft.rs +++ b/examples/minecraft.rs @@ -6,7 +6,7 @@ fn main() { let response = mc::query("127.0.0.1", None); match response { - Err(error) => println!("Couldn't query, error: {error}"), + Err(error) => println!("Couldn't query, error: {}", error), Ok(r) => println!("{:#?}", r) } } diff --git a/examples/tf2.rs b/examples/tf2.rs index f901d01..8a612c9 100644 --- a/examples/tf2.rs +++ b/examples/tf2.rs @@ -4,7 +4,7 @@ use gamedig::games::tf2; fn main() { let response = tf2::query("127.0.0.1", None); //or Some(27015), None is the default protocol port (which is 27015) match response { - Err(error) => println!("Couldn't query, error: {error}"), + Err(error) => println!("Couldn't query, error: {}", error), Ok(r) => println!("{:#?}", r) } } diff --git a/src/protocols/valve/protocol.rs b/src/protocols/valve/protocol.rs index 3d5ba45..80dbb25 100644 --- a/src/protocols/valve/protocol.rs +++ b/src/protocols/valve/protocol.rs @@ -433,7 +433,7 @@ fn get_response(address: &str, port: u16, app: App, gather_settings: GatheringSe if let App::Source(source_app) = &app { if let Some(appid) = source_app { if *appid != info.appid { - return Err(BadGame(format!("AppId: {appid}"))); + return Err(BadGame(format!("AppId: {}", appid))); } } }