diff --git a/src/avdict.rs b/src/avdict.rs index 5bb99f5..12170c4 100644 --- a/src/avdict.rs +++ b/src/avdict.rs @@ -6,7 +6,6 @@ use crate::gettext; use std::collections::HashMap; use std::convert::AsMut; use std::convert::AsRef; -use std::convert::TryFrom; use std::default::Default; use std::ffi::CStr; use std::ffi::CString; diff --git a/src/data/data.rs b/src/data/data.rs index 1d44281..8316554 100644 --- a/src/data/data.rs +++ b/src/data/data.rs @@ -7,7 +7,6 @@ use crate::pixiv_link::PixivID; use crate::pixiv_link::ToPixivID; use int_enum::IntEnum; use json::JsonValue; -use std::convert::TryInto; use xml::unescape; /// The type of the artwork diff --git a/src/data/exif.rs b/src/data/exif.rs index 90e3757..ca690da 100644 --- a/src/data/exif.rs +++ b/src/data/exif.rs @@ -8,7 +8,6 @@ use crate::ext::try_err::TryErr; use crate::parser::description::parse_description; use proc_macros::call_parent_data_source_fun; use proc_macros::define_exif_data_source; -use std::convert::TryFrom; use std::ffi::OsStr; use utf16string::LittleEndian; use utf16string::WString; diff --git a/src/downloader/helper.rs b/src/downloader/helper.rs index c16574a..403de83 100644 --- a/src/downloader/helper.rs +++ b/src/downloader/helper.rs @@ -8,7 +8,6 @@ use crate::gettext; use crate::webclient::ToHeaders; use crate::webclient::WebClient; use reqwest::IntoUrl; -use std::convert::TryFrom; use std::path::Path; use std::sync::Arc; use url::Url; diff --git a/src/downloader/pd_file/version.rs b/src/downloader/pd_file/version.rs index 23ee416..16f0ffe 100644 --- a/src/downloader/pd_file/version.rs +++ b/src/downloader/pd_file/version.rs @@ -3,7 +3,6 @@ use std::cmp::Ordering; use std::cmp::PartialEq; use std::cmp::PartialOrd; use std::convert::AsRef; -use std::convert::TryFrom; use std::io::Read; use std::io::Write; diff --git a/src/exif.rs b/src/exif.rs index 72aff4b..2787dd0 100644 --- a/src/exif.rs +++ b/src/exif.rs @@ -9,7 +9,6 @@ use std::borrow::Borrow; use std::borrow::BorrowMut; use std::borrow::ToOwned; use std::clone::Clone; -use std::convert::TryFrom; use std::ffi::CStr; use std::ffi::CString; use std::ffi::OsStr; diff --git a/src/opt/author_name_filter.rs b/src/opt/author_name_filter.rs index d6adf33..5498e32 100644 --- a/src/opt/author_name_filter.rs +++ b/src/opt/author_name_filter.rs @@ -5,7 +5,6 @@ use fancy_regex::Regex; use json::JsonValue; use std::cmp::PartialEq; use std::convert::From; -use std::convert::TryFrom; use std::fmt::Display; #[derive(Debug, derive_more::From)] diff --git a/src/opt/proxy.rs b/src/opt/proxy.rs index 73c84a2..e8a9420 100644 --- a/src/opt/proxy.rs +++ b/src/opt/proxy.rs @@ -1,7 +1,6 @@ use crate::ext::try_err::TryErr; use crate::gettext; use json::JsonValue; -use std::convert::TryFrom; use std::fmt::Display; use std::ops::Deref; use std::ops::DerefMut; diff --git a/src/opt/size.rs b/src/opt/size.rs index b0dfee7..350fbde 100644 --- a/src/opt/size.rs +++ b/src/opt/size.rs @@ -1,5 +1,4 @@ use json::JsonValue; -use std::convert::TryFrom; /// Parse file size pub fn parse_size(obj: &JsonValue) -> Option { diff --git a/src/opthelper.rs b/src/opthelper.rs index 056464b..aab2f6e 100644 --- a/src/opthelper.rs +++ b/src/opthelper.rs @@ -19,7 +19,6 @@ use crate::server::cors::CorsEntry; use crate::settings::SettingStore; #[cfg(feature = "ugoira")] use crate::ugoira::X264Profile; -use std::convert::TryFrom; #[cfg(feature = "server")] use std::net::IpAddr; #[cfg(feature = "server")] diff --git a/src/opts.rs b/src/opts.rs index 725c1dc..3a38eb0 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -9,7 +9,6 @@ use crate::utils::check_file_exists; use crate::utils::get_exe_path_else_current; use getopts::HasArg; use getopts::Options; -use std::convert::TryFrom; use std::env; #[cfg(feature = "server")] use std::net::SocketAddr; diff --git a/src/pixiv_link.rs b/src/pixiv_link.rs index 69f92d5..323a130 100644 --- a/src/pixiv_link.rs +++ b/src/pixiv_link.rs @@ -2,7 +2,6 @@ use crate::ext::json::ToJson; use json::JsonValue; use regex::Regex; use reqwest::IntoUrl; -use std::convert::TryInto; lazy_static! { #[doc(hidden)] diff --git a/src/server/cors.rs b/src/server/cors.rs index 8bc896b..ccd878a 100644 --- a/src/server/cors.rs +++ b/src/server/cors.rs @@ -6,7 +6,6 @@ use http::Uri; use json::JsonValue; use std::cmp::PartialEq; use std::convert::From; -use std::convert::TryFrom; use std::default::Default; use std::fmt::Display; use std::net::SocketAddr; diff --git a/src/ugoira.rs b/src/ugoira.rs index 960d788..ed49c07 100644 --- a/src/ugoira.rs +++ b/src/ugoira.rs @@ -8,7 +8,6 @@ use crate::ext::rawhandle::ToRawHandle; use crate::ext::try_err::TryErr; use crate::gettext; use std::convert::AsRef; -use std::convert::TryFrom; use std::default::Default; use std::ffi::CStr; use std::ffi::OsStr; diff --git a/src/webclient.rs b/src/webclient.rs index 59b058c..ee5ad57 100644 --- a/src/webclient.rs +++ b/src/webclient.rs @@ -9,7 +9,6 @@ use crate::opthelper::get_helper; use json::JsonValue; use reqwest::{Client, ClientBuilder, IntoUrl, RequestBuilder, Response}; use std::collections::HashMap; -use std::convert::TryInto; use std::default::Default; use std::sync::atomic::AtomicBool; use std::sync::atomic::AtomicI64;