From b58b03c22d637fe8f7200edb6953325bf359544d Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 7 Aug 2024 07:39:16 -0400 Subject: split calc into separate subcrate --- src/commands/game.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/commands/game.rs') diff --git a/src/commands/game.rs b/src/commands/game.rs index 3b16fd3..ba9ac69 100644 --- a/src/commands/game.rs +++ b/src/commands/game.rs @@ -36,7 +36,6 @@ use crate::{ bot::HttpKey, util, PoiseContext, - Result, CONFIG, }; @@ -125,7 +124,7 @@ enum GameStatus { impl FromStr for GameStatus { type Err = anyhow::Error; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> anyhow::Result { use std::char; if s.starts_with('y') { @@ -404,7 +403,7 @@ async fn _game( Ok(()) } -async fn load_spreadsheet(client: &reqwest::Client) -> Result>> { +async fn load_spreadsheet(client: &reqwest::Client) -> anyhow::Result>> { let mut u = SPREADSHEET_URL.clone(); u.query_pairs_mut() -- cgit v1.3.1