From a4d0c29767469e700e02556d700f138c2611ea3e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 12 Jan 2014 23:34:03 -0800 Subject: [PATCH] Minor cleanup now that there isn't a util mod --- lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib.rs b/lib.rs index 2819abac..2e768315 100644 --- a/lib.rs +++ b/lib.rs @@ -74,14 +74,15 @@ use extra::url::{UserInfo, Url}; use openssl::crypto::hash::{MD5, Hasher}; use openssl::ssl::{SslStream, SslContext}; use std::cell::RefCell; -use std::io::io_error; +use std::hashmap::HashMap; use std::io::buffered::BufferedStream; -use std::io::net; +use std::io::io_error; use std::io::net::ip::{Port, SocketAddr}; use std::io::net::tcp::TcpStream; -use std::task; -use std::hashmap::HashMap; +use std::io::net; use std::str; +use std::task; +use std::util; use self::error::{PostgresDbError, PostgresConnectError, @@ -476,7 +477,7 @@ impl InnerPostgresConnection { fn set_notice_handler(&mut self, handler: ~PostgresNoticeHandler) -> ~PostgresNoticeHandler { - ::std::util::replace(&mut self.notice_handler, handler) + util::replace(&mut self.notice_handler, handler) } fn try_prepare<'a>(&mut self, query: &str, conn: &'a PostgresConnection)