1
Fork 0

Replace usize appid with Display trait.

This commit is contained in:
Bauke 2022-09-21 23:47:27 +02:00
parent 8fa4607456
commit 72e916c764
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -153,6 +153,6 @@ fn main() -> Result<()> {
}
/// Creates a Steam RSS URL from a given AppID.
fn appid_to_rss_url(appid: usize) -> String {
fn appid_to_rss_url<D: std::fmt::Display>(appid: D) -> String {
format!("https://steamcommunity.com/games/{appid}/rss/")
}