diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-09-25 13:38:44 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-09-25 16:44:06 -0400 |
commit | 0b4ee7bfb285aa7c095ac050e2e0b8c659022113 (patch) | |
tree | b25e03a48409b53d734ff8d76a8cf5d752ca77b2 /src/errors.rs | |
parent | c30b4da57c418e87301cd85b9fe38f93efb0f4bb (diff) |
Various cleanup tasks
* Remove old `extern crate` stmts
* Remove rust-skeptic
* Clean up Cargo.toml
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs index f0d61c9..49a53b6 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,4 +1,5 @@ use std::{error, fmt, io::Error as IoError}; +use serde::Deserialize; #[cfg(feature = "env")] use envy::Error as EnvyError; @@ -8,9 +9,9 @@ use serde_json::Error as SerdeError; use serde_qs::Error as SerdeQsError; use serde_urlencoded::ser::Error as UrlEncodedError; #[cfg(feature = "toml")] -use crate::tomlcrate::de::Error as TomlDeError; +use ::toml::de::Error as TomlDeError; #[cfg(feature = "toml")] -use crate::tomlcrate::ser::Error as TomlSerError; +use ::toml::ser::Error as TomlSerError; use url::ParseError as UrlError; use tungstenite::error::Error as WebSocketError; @@ -237,8 +238,7 @@ mod tests { #[cfg(feature = "toml")] #[test] fn from_toml_de_error() { - use crate::tomlcrate; - let err: TomlDeError = tomlcrate::from_str::<()>("not valid toml").unwrap_err(); + let err: TomlDeError = ::toml::from_str::<()>("not valid toml").unwrap_err(); let err: Error = Error::from(err); assert_is!(err, Error::TomlDe(..)); } |