Skip to content

Commit b7bd55a

Browse files
committed
Fix formatting and remove unintended println
1 parent 6c7dcb0 commit b7bd55a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/steam_news/get_news_for_app.rs

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ impl Steam {
6868
optional_argument!(feeds),
6969
];
7070

71-
println!("{}", optional_arguments[3]);
72-
7371
let query = format!("?appid={}{}", appid, optional_arguments.concat());
7472
let url = format!("{}/{}/{}/v{}/{}", BASE, INTERFACE, ENDPOINT, VERSION, query);
7573

src/steam_user/resolve_vanity_url.rs

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl Steam {
6060
VERSION,
6161
query.concat()
6262
);
63+
6364
let json = do_http!(url, Value, ErrorHandle, SteamUserError::ResolveVanityURL);
6465
let wrapper: Wrapper = ErrorHandle!(
6566
from_value(json.to_owned()),

tests/steam_user.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ pub async fn get_user_group_list() {
5151
pub async fn resolve_vanity_url() {
5252
for url in EXAMPLE_VANITY_URLS {
5353
let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key"));
54-
println!("{:?}", steam.resolve_vanity_url(url, None).await.unwrap());
54+
println!(
55+
"{:?}",
56+
steam.resolve_vanity_url(url, Some(1)).await.unwrap()
57+
);
5558
}
5659
}

0 commit comments

Comments
 (0)