From 15de7753785432576351ba1ea6a3f7dfcb410005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Mon, 22 Jul 2024 17:22:30 -0400 Subject: [PATCH] Fix compiler warning in steam.rs --- src/steam.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/steam.rs b/src/steam.rs index c140d5d7..16557650 100644 --- a/src/steam.rs +++ b/src/steam.rs @@ -25,16 +25,15 @@ const APPID: u32 = 2501490; pub struct Steamworks { - pub client: steamworks::Client, pub single: parking_lot::Mutex>, } impl Steamworks { pub fn new() -> Result { - let (client, single) = steamworks::Client::init_app(APPID)?; + let (_, single) = steamworks::Client::init_app(APPID)?; let single = parking_lot::Mutex::new(single); - let steamworks = Steamworks { client, single }; + let steamworks = Steamworks { single }; Ok(steamworks) }