diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-02-19 12:27:22 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-02-19 12:27:22 +0100 |
commit | e8ce405349f2473e1353632bd455261b8ef9d479 (patch) | |
tree | 352831bea489dc0be4e40a9edc0320df6932f0c9 /src | |
parent | e3591f9f2ba4202ae570bda457e0a9e43e91b9e7 (diff) | |
download | kondou-e8ce405349f2473e1353632bd455261b8ef9d479.tar.gz kondou-e8ce405349f2473e1353632bd455261b8ef9d479.tar.bz2 kondou-e8ce405349f2473e1353632bd455261b8ef9d479.zip |
update dependencies
image should also be updated to 0.23, but imageproc currently still uses
0.22, so we need to match it.
Diffstat (limited to 'src')
-rw-r--r-- | src/api/mod.rs | 4 | ||||
-rw-r--r-- | src/main.rs | 15 |
2 files changed, 2 insertions, 17 deletions
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<Self, ApiError>; } -impl ApiResponse for reqwest::Response { +impl ApiResponse for reqwest::blocking::Response { fn ensure_found(self) -> Result<Self, ApiError> { if self.status() == StatusCode::PARTIAL_CONTENT || self.status() == StatusCode::NOT_FOUND { Err(ApiError::ItemNotFound) diff --git a/src/main.rs b/src/main.rs index d8e66a1..98dbc1e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,18 +1,3 @@ -extern crate base64; -extern crate byteorder; -extern crate clap; -extern crate image; -extern crate imageproc; -extern crate itertools; -extern crate md5; -extern crate num_enum; -extern crate num_traits; -extern crate reqwest; -extern crate rusttype; -extern crate termcolor; -extern crate toml; -extern crate xdg; - use std::error::Error as StdError; use std::fmt; |