Skip to content

Commit 87ac844

Browse files
authored
Merge pull request #93 from ticky/dependabot/cargo/steamid-ng-2.0.0
Bump steamid-ng from 1.0.0 to 2.0.0
2 parents 15d075e + b64e335 commit 87ac844

File tree

3 files changed

+7
-114
lines changed

3 files changed

+7
-114
lines changed

Cargo.lock

Lines changed: 2 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lazy_static = "1.5"
1515
notify-debouncer-mini = "0.6"
1616
path-matchers = "1.0"
1717
serde = { version = "1.0", features = ["derive"] }
18-
steamid-ng = "1.0"
18+
steamid-ng = "2.0"
1919
steamlocate = { version = "1.2", features = ["shortcuts_extras"] }
2020
steamy-vdf = "0.2"
2121
symlink = "0.1"

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn main() -> Result<()> {
128128
.to_owned();
129129

130130
for (steamid64_str, userinfo) in users_list.iter() {
131-
let steamid = SteamID::from(steamid64_str.parse::<u64>()?);
131+
let steamid = SteamID::try_from(steamid64_str.parse::<u64>()?)?;
132132

133133
if let Some(single_user_id64) = args.single_user_id64 {
134134
if single_user_id64 != steamid.into() {
@@ -330,7 +330,9 @@ fn main() -> Result<()> {
330330

331331
let (steamid64_str, name) =
332332
match users_list.iter().find(|(steamid64_str, _userinfo)| {
333-
let steamid = SteamID::from(steamid64_str.parse::<u64>().unwrap_or(0));
333+
let steamid =
334+
SteamID::try_from(steamid64_str.parse::<u64>().unwrap_or(0))
335+
.unwrap();
334336

335337
u64::from(steamid.account_id()) == steam_account_id_from_dir
336338
}) {

0 commit comments

Comments
 (0)