Skip to content

Commit

Permalink
Fix compiler warning in steam.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Jul 22, 2024
1 parent 9a55fd8 commit 15de775
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/steam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@
const APPID: u32 = 2501490;

pub struct Steamworks {
pub client: steamworks::Client<steamworks::ClientManager>,
pub single: parking_lot::Mutex<steamworks::SingleClient<steamworks::ClientManager>>,
}

impl Steamworks {
pub fn new() -> Result<Self, steamworks::SteamError> {
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)
}
Expand Down

0 comments on commit 15de775

Please sign in to comment.