cargo updates

This commit is contained in:
Robin Appelman 2026-03-29 16:20:40 +02:00
commit bd689f3141
4 changed files with 580 additions and 471 deletions

View file

@ -1,5 +1,5 @@
use std::convert::TryFrom;
use std::env::args;
use std::str::FromStr;
use steam_resolve_vanity::get_vanity_url;
use steamid_ng::SteamID;
@ -9,7 +9,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let binary = args.next().unwrap(); // first argument is binary
if let Some(steam_id) = args.next() {
if let Some(vanity) = get_vanity_url(SteamID::try_from(steam_id.as_str())?).await? {
if let Some(vanity) = get_vanity_url(SteamID::from_str(steam_id.as_str())?).await? {
println!("{}", vanity);
} else {
println!("No vanity found for steamid");