From 0b5e5def96e1cf44b6a28453399ad41f8ade2633 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 21 Sep 2022 23:26:46 +0200 Subject: [PATCH] Create appid_to_rss_url helper function. --- source/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/main.rs b/source/main.rs index c5f0d0c..b4b7703 100644 --- a/source/main.rs +++ b/source/main.rs @@ -124,3 +124,8 @@ fn main() -> Result<()> { Ok(()) } + +/// Creates a Steam RSS URL from a given AppID. +fn appid_to_rss_url(appid: usize) -> String { + format!("https://steamcommunity.com/games/{appid}/rss/") +}