This commit is contained in:
2022-07-07 14:18:02 +00:00
committed by GitHub
parent 6857334f53
commit 52ce86764c
6 changed files with 29 additions and 8 deletions

View File

@@ -17,8 +17,9 @@ impl VersionContext {
}
}
#[async_trait]
impl ResponseJsonFor<Body> for VersionContext {
fn response_json(&self, _req: Request<Body>) -> Result<JsonValue, PixivDownloaderError> {
async fn response_json(&self, _req: Request<Body>) -> Result<JsonValue, PixivDownloaderError> {
Ok(json::object! {"version": [0, 0, 1, 0]})
}
}