Replace usize appid with Display trait.
This commit is contained in:
parent
8fa4607456
commit
72e916c764
|
@ -153,6 +153,6 @@ fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a Steam RSS URL from a given AppID.
|
/// 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/")
|
format!("https://steamcommunity.com/games/{appid}/rss/")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue