From 0cccc10b9767050ee36027c968d3411b68448a9c Mon Sep 17 00:00:00 2001 From: Harlley Date: Fri, 21 Jul 2023 10:05:07 -0300 Subject: [PATCH] fix: github --- {github => .github}/workflows/main.yml | 0 src/main.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {github => .github}/workflows/main.yml (100%) diff --git a/github/workflows/main.yml b/.github/workflows/main.yml similarity index 100% rename from github/workflows/main.yml rename to .github/workflows/main.yml diff --git a/src/main.rs b/src/main.rs index aa34cae..50d8bc0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ struct Summoner { #[tokio::main] async fn main() -> Result<(), Error> { - let api_key = "RGAPI-43081cef-fa19-400b-af8a-48dc7f2b1a58"; + let api_key = std::env::var("RIOT_API_KEY").expect("RIOT_API_KEY is not set"); let summoner_name = "Harlley Davidson"; let summoner_url = format!(