Clean up uuid stuff

This commit is contained in:
Steven Fackler 2014-11-17 20:27:03 -08:00
parent d95e163c9e
commit 5da8efe1fd
2 changed files with 5 additions and 7 deletions

View File

@ -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) =>

View File

@ -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")