summaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2020-06-09 09:11:18 -0400
committerPaul Woolcock <paul@woolcock.us>2020-06-11 12:09:52 -0400
commit16bc060407fc23660994bf3f4894cfecf2a46148 (patch)
tree2551738ee5e24747070c7b7fdd752b7762da9dc6 /src/errors.rs
parent17c727f5c615eed921d0095d1b6f49e44024025d (diff)
Update to the 2018 edition
Only 2 years later :eyeroll:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs
index f4d62b4..f0d61c9 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -8,9 +8,9 @@ use serde_json::Error as SerdeError;
use serde_qs::Error as SerdeQsError;
use serde_urlencoded::ser::Error as UrlEncodedError;
#[cfg(feature = "toml")]
-use tomlcrate::de::Error as TomlDeError;
+use crate::tomlcrate::de::Error as TomlDeError;
#[cfg(feature = "toml")]
-use tomlcrate::ser::Error as TomlSerError;
+use crate::tomlcrate::ser::Error as TomlSerError;
use url::ParseError as UrlError;
use tungstenite::error::Error as WebSocketError;
@@ -128,7 +128,7 @@ macro_rules! from {
$(#[$met])*
impl From<$typ> for Error {
fn from(from: $typ) -> Self {
- use Error::*;
+ use crate::Error::*;
$variant(from)
}
}
@@ -237,7 +237,7 @@ mod tests {
#[cfg(feature = "toml")]
#[test]
fn from_toml_de_error() {
- use tomlcrate;
+ use crate::tomlcrate;
let err: TomlDeError = tomlcrate::from_str::<()>("not valid toml").unwrap_err();
let err: Error = Error::from(err);
assert_is!(err, Error::TomlDe(..));