summaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs4
-rw-r--r--src/http/shiggy.rs2
-rw-r--r--src/http/teawie.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 0f16852..dde769c 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -1,4 +1,4 @@
-use eyre::Result;
+use anyhow::Result;
use log::trace;
use serde::de::DeserializeOwned;
@@ -19,7 +19,7 @@ impl Ext for Client {
fn default() -> Self {
reqwest::ClientBuilder::new()
.user_agent(format!(
- "teawie-bot/{}",
+ "chill-discord-bot/{}",
option_env!("CARGO_PKG_VERSION").unwrap_or("development")
))
.build()
diff --git a/src/http/shiggy.rs b/src/http/shiggy.rs
index 397d397..a0af0b3 100644
--- a/src/http/shiggy.rs
+++ b/src/http/shiggy.rs
@@ -1,4 +1,4 @@
-use eyre::Result;
+use anyhow::Result;
use serde::Deserialize;
const SHIGGY: &str = "https://safebooru.donmai.us";
diff --git a/src/http/teawie.rs b/src/http/teawie.rs
index 368fad5..cd83ca2 100644
--- a/src/http/teawie.rs
+++ b/src/http/teawie.rs
@@ -1,4 +1,4 @@
-use eyre::{bail, OptionExt, Result};
+use anyhow::{bail, Context, Result};
use serde::{Deserialize, Serialize};
// https://github.com/getchoo/teawieAPI
@@ -24,5 +24,5 @@ where
};
json.url
- .ok_or_eyre("TeawieAPI didn't return an error or URL???")
+ .context("TeawieAPI didn't return an error or URL???")
}