Clean up uuid stuff
This commit is contained in:
parent
d95e163c9e
commit
5da8efe1fd
@ -70,8 +70,7 @@ impl Writer for InternalStream {
|
||||
}
|
||||
}
|
||||
|
||||
fn open_socket(params: &ConnectParams)
|
||||
-> Result<InternalStream, ConnectError> {
|
||||
fn open_socket(params: &ConnectParams) -> Result<InternalStream, ConnectError> {
|
||||
let port = params.port.unwrap_or(DEFAULT_PORT);
|
||||
match params.target {
|
||||
ConnectTarget::Tcp(ref host) =>
|
||||
|
@ -14,8 +14,8 @@ impl RawFromSql for Uuid {
|
||||
}
|
||||
}
|
||||
|
||||
from_raw_from_impl!(super::Uuid, Uuid, doc = "requires the \"uuid\" feature")
|
||||
from_array_impl!(super::UuidArray, Uuid, doc = "requires the \"uuid\" feature")
|
||||
from_raw_from_impl!(Type::Uuid, Uuid, doc = "requires the \"uuid\" feature")
|
||||
from_array_impl!(Type::UuidArray, Uuid, doc = "requires the \"uuid\" feature")
|
||||
|
||||
impl RawToSql for Uuid {
|
||||
fn raw_to_sql<W: Writer>(&self, w: &mut W) -> Result<()> {
|
||||
@ -23,6 +23,5 @@ impl RawToSql for Uuid {
|
||||
}
|
||||
}
|
||||
|
||||
to_raw_to_impl!(super::Uuid, Uuid, doc = "requires the \"type\" feature")
|
||||
|
||||
to_array_impl!(super::UuidArray, Uuid, doc = "requires the \"type\" feature")
|
||||
to_raw_to_impl!(Type::Uuid, Uuid, doc = "requires the \"uuid\" feature")
|
||||
to_array_impl!(Type::UuidArray, Uuid, doc = "requires the \"uuid\" feature")
|
||||
|
Loading…
Reference in New Issue
Block a user