From cd8b5f7fc15fbd73ad502ffb6e3e9266a72ae7ed Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 21 Jan 2015 22:16:22 -0800 Subject: [PATCH] Remove String impl for Type --- src/types/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index 903ec35d..1fd15a39 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -215,18 +215,6 @@ macro_rules! make_postgres_type { } } - impl fmt::String for Type { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - let s = match *self { - $( - Type::$variant => stringify!($variant), - )+ - Type::Unknown { ref name, .. } => &**name, - }; - fmt.write_str(s) - } - } - impl Type { /// Creates a `Type` from an OID. ///