diff options
Diffstat (limited to 'src/commands/game.rs')
| -rw-r--r-- | src/commands/game.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<Self> { + fn from_str(s: &str) -> anyhow::Result<Self> { use std::char; if s.starts_with('y') { @@ -404,7 +403,7 @@ async fn _game( Ok(()) } -async fn load_spreadsheet(client: &reqwest::Client) -> Result<Vec<Vec<String>>> { +async fn load_spreadsheet(client: &reqwest::Client) -> anyhow::Result<Vec<Vec<String>>> { let mut u = SPREADSHEET_URL.clone(); u.query_pairs_mut() |
