DataError: Remove unused error variant

This was added due to Threadpool::spawn returning errors, but its
no longer used.
This commit is contained in:
Jordan Petridis
2018-09-08 20:17:46 +03:00
parent 674b3b54dc
commit a991d9f512
4 changed files with 0 additions and 15 deletions
-2
View File
@@ -20,8 +20,6 @@ futures = "0.1.23"
hyper = "0.11.27"
tokio = "0.1.8"
tokio-core = "0.1.17"
tokio-threadpool = "0.1.6"
tokio-executor = "0.1"
hyper-tls = "0.1.3"
native-tls = "0.1.5"
num_cpus = "1.8.0"
-9
View File
@@ -4,7 +4,6 @@ use diesel_migrations::RunMigrationsError;
use hyper;
use native_tls;
use rss;
use tokio_executor;
use url;
use xml;
@@ -47,8 +46,6 @@ pub enum DataError {
R2D2PoolError(#[cause] r2d2::PoolError),
#[fail(display = "Hyper Error: {}", _0)]
HyperError(#[cause] hyper::Error),
#[fail(display = "Tokio Spawn Error: {}", _0)]
SpawnError(#[cause] tokio_executor::SpawnError),
#[fail(display = "Failed to parse a url: {}", _0)]
UrlError(#[cause] url::ParseError),
#[fail(display = "TLS Error: {}", _0)]
@@ -104,12 +101,6 @@ impl From<hyper::Error> for DataError {
}
}
impl From<tokio_executor::SpawnError> for DataError {
fn from(err: tokio_executor::SpawnError) -> Self {
DataError::SpawnError(err)
}
}
impl From<url::ParseError> for DataError {
fn from(err: url::ParseError) -> Self {
DataError::UrlError(err)
-2
View File
@@ -84,8 +84,6 @@ extern crate rfc822_sanitizer;
extern crate rss;
extern crate tokio;
extern crate tokio_core;
extern crate tokio_executor;
extern crate tokio_threadpool;
extern crate url;
extern crate xdg;
extern crate xml;