Fixing closures.
This commit is contained in:
parent
01b7ac5fb9
commit
809cc1049e
4 changed files with 5 additions and 5 deletions
|
@ -158,7 +158,7 @@ where
|
|||
let res = web::block(move || oper.perform(db.get_ref().to_owned(), Some(ws_info)))
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ async fn get_all_feed(
|
|||
.content_type("application/rss+xml")
|
||||
.body(rss)
|
||||
})
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ async fn get_feed(
|
|||
.content_type("application/rss+xml")
|
||||
.body(rss)
|
||||
})
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ async fn node_info(
|
|||
})
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
|
|
|
@ -84,6 +84,6 @@ async fn get_webfinger_response(
|
|||
})
|
||||
.await
|
||||
.map(|json| HttpResponse::Ok().json(json))
|
||||
.map_err(|e| ErrorBadRequest(e))?;
|
||||
.map_err(ErrorBadRequest)?;
|
||||
Ok(res)
|
||||
}
|
||||
|
|
Reference in a new issue