mirror of
https://codeberg.org/icewind/steam-resolve-vanity.git
synced 2026-06-03 17:14:06 +02:00
cargo updates
This commit is contained in:
parent
539d878a7c
commit
bd689f3141
4 changed files with 580 additions and 471 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue