From 61b7b7075227f25f509e0ca51909e0f873ed310f Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Sun, 21 May 2017 16:11:15 +0100 Subject: Refactor errors to be of a single type and export it. --- src/ser.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/ser.rs') diff --git a/src/ser.rs b/src/ser.rs index 1d5fe07..bd942fe 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -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"; -- cgit v1.2.3