Follow reqwest change

This commit is contained in:
Kitaiti Makoto
2022-05-05 01:21:25 +09:00
parent 5c74f598d8
commit 2e35441483
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ pub trait FromId<C>: Sized {
) -> Result<Self::Object, (Option<serde_json::Value>, Self::Error)> {
request::get(id, Self::get_sender(), proxy)
.map_err(|_| (None, InboxError::DerefError))
.and_then(|mut r| {
.and_then(|r| {
let json: serde_json::Value = r
.json()
.map_err(|_| (None, InboxError::InvalidObject(None)))?;