Remove String impl for Type
This commit is contained in:
parent
e0758ed5b8
commit
cd8b5f7fc1
@ -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 {
|
impl Type {
|
||||||
/// Creates a `Type` from an OID.
|
/// Creates a `Type` from an OID.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user