From 72e916c7648dd5d11300bf1d664282ae9aca9e50 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 21 Sep 2022 23:47:27 +0200 Subject: [PATCH] Replace usize appid with Display trait. --- source/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.rs b/source/main.rs index e1feb10..de2e883 100644 --- a/source/main.rs +++ b/source/main.rs @@ -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(appid: D) -> String { format!("https://steamcommunity.com/games/{appid}/rss/") }