aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-06 13:18:29 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-06 13:18:29 -0500
commit9e77724efff281f0fe6d05440ad65c5ab561f380 (patch)
treeee5983d46b9f040a9c9880df9eb02b8d36956628 /src/actions.rs
parentabc01f5a3865da5bd962402a8f7d9fd95c149622 (diff)
downloadrbw-9e77724efff281f0fe6d05440ad65c5ab561f380.tar.gz
rbw-9e77724efff281f0fe6d05440ad65c5ab561f380.zip
switch to thiserror
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs
index bda8670..0d8c88d 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -259,7 +259,7 @@ where
{
match f(access_token) {
Ok(t) => Ok((None, t)),
- Err(crate::error::Error::RequestUnauthorized) => {
+ Err(Error::RequestUnauthorized) => {
let access_token = exchange_refresh_token(refresh_token)?;
let t = f(&access_token)?;
Ok((Some(access_token), t))
@@ -284,7 +284,7 @@ where
{
match f(access_token).await {
Ok(t) => Ok((None, t)),
- Err(crate::error::Error::RequestUnauthorized) => {
+ Err(Error::RequestUnauthorized) => {
let access_token =
exchange_refresh_token_async(refresh_token).await?;
let t = f(&access_token).await?;