From e8ce405349f2473e1353632bd455261b8ef9d479 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 19 Feb 2020 12:27:22 +0100 Subject: update dependencies image should also be updated to 0.23, but imageproc currently still uses 0.22, so we need to match it. --- src/api/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api') diff --git a/src/api/mod.rs b/src/api/mod.rs index c4aa1f7..1d069cd 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -16,7 +16,7 @@ pub use self::{ use image::DynamicImage; use itertools::Itertools; -use reqwest::{Client, StatusCode, Url}; +use reqwest::{blocking::Client, StatusCode, Url}; use serde::{de::DeserializeOwned, Serialize}; use std::{error::Error, fmt, path::Path}; @@ -72,7 +72,7 @@ where fn ensure_found(self) -> Result; } -impl ApiResponse for reqwest::Response { +impl ApiResponse for reqwest::blocking::Response { fn ensure_found(self) -> Result { if self.status() == StatusCode::PARTIAL_CONTENT || self.status() == StatusCode::NOT_FOUND { Err(ApiError::ItemNotFound) -- cgit v1.2.3