Remove String impl for Type

This commit is contained in:
Steven Fackler 2015-01-21 22:16:22 -08:00
parent e0758ed5b8
commit cd8b5f7fc1

View File

@ -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.
///