Minor cleanup now that there isn't a util mod

This commit is contained in:
Steven Fackler
2014-01-12 23:34:03 -08:00
parent b0b9173192
commit a4d0c29767

11
lib.rs
View File

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