From 8e41ccd17722b7ce411e6a740a2397d6682d192e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 7 Nov 2013 21:51:28 -0800 Subject: [PATCH] Fix build error Add a build of the library to travis to prevent regressions. --- .travis.yml | 1 + lib.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b5907674..afd96313 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,4 @@ before_script: - ./travis/setup.sh script: - rustpkg --cfg travis test + - rustpkg build diff --git a/lib.rs b/lib.rs index 01abbcc6..4a073e4f 100644 --- a/lib.rs +++ b/lib.rs @@ -69,7 +69,6 @@ fn main() { extern mod extra; -use std; use extra::container::Deque; use extra::ringbuf::RingBuf; use extra::url::{UserInfo, Url}; @@ -542,7 +541,7 @@ impl InnerPostgresConnection { fn set_notice_handler(&mut self, handler: ~PostgresNoticeHandler) -> ~PostgresNoticeHandler { - std::util::replace(&mut self.notice_handler, handler) + ::std::util::replace(&mut self.notice_handler, handler) } fn try_prepare<'a>(&mut self, query: &str, conn: &'a PostgresConnection)