diff options
author | Sam Scott <sam.scott89@gmail.com> | 2017-05-21 16:11:15 +0100 |
---|---|---|
committer | Sam Scott <sam.scott89@gmail.com> | 2017-05-21 16:11:56 +0100 |
commit | 61b7b7075227f25f509e0ca51909e0f873ed310f (patch) | |
tree | d533ffece20e8dc833cb6f32a0932bf2fbede511 /src/ser.rs | |
parent | 6429b975c6cbcf5d7e0c2b1d02026f8d46b5c50f (diff) |
Refactor errors to be of a single type and export it.
Diffstat (limited to 'src/ser.rs')
-rw-r--r-- | src/ser.rs | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -10,6 +10,8 @@ use std::fmt::Display; use std::borrow::Cow; use std::str; +use error::*; + /// Serializes a value into a querystring. /// /// ``` @@ -76,13 +78,6 @@ impl<'a, Target: 'a + UrlEncodedTarget> QsSerializer<'a, Target> { } } -error_chain!{ - errors { - Custom(msg: String) - Unsupported - } -} - impl Error { fn no_key() -> Self { let msg = "tried to serialize a value before serializing key"; |