From d0e342d4f7b7715370fa5254c53ea30cdde6612f Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 12 Jul 2024 00:00:20 +0200 Subject: [PATCH] Use other internal request method for some api endpoints --- src/account.rs | 4 ++-- src/list/crunchylist.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/account.rs b/src/account.rs index e84c840..edbb5e7 100644 --- a/src/account.rs +++ b/src/account.rs @@ -196,7 +196,7 @@ impl Account { "current_password": current_password, "new_email": new_email, })) - .request() + .request_raw(true) .await?; Ok(()) } @@ -207,7 +207,7 @@ impl Account { self.executor .patch(endpoint) .json(&json!({"wallpaper": &wallpaper.name})) - .request() + .request_raw(true) .await?; self.wallpaper = wallpaper; Ok(()) diff --git a/src/list/crunchylist.rs b/src/list/crunchylist.rs index 15e4379..1f20828 100644 --- a/src/list/crunchylist.rs +++ b/src/list/crunchylist.rs @@ -37,7 +37,7 @@ impl CrunchylistEntry { self.executor .delete(endpoint) .apply_locale_query() - .request() + .request_raw(true) .await?; Ok(()) }