diff --git a/src/lib.rs b/src/lib.rs
index 6f758c65..0780d7cb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -406,7 +406,7 @@ impl InnerConnection {
let mut conn = InnerConnection {
stream: BufferedStream::new(stream),
next_stmt_id: 0,
- notice_handler: box DefaultNoticeHandler,
+ notice_handler: Box::new(DefaultNoticeHandler),
notifications: RingBuf::new(),
cancel_data: CancelData { process_id: 0, secret_key: 0 },
unknown_types: HashMap::new(),
diff --git a/src/types/mod.rs b/src/types/mod.rs
index 2b7c997b..3de73a77 100644
--- a/src/types/mod.rs
+++ b/src/types/mod.rs
@@ -7,7 +7,7 @@ use Result;
use error::Error;
macro_rules! check_types {
- ($($expected:pat)|+, $actual:ident) => (
+ ($($expected:pat),+; $actual:ident) => (
match $actual {
$(&$expected)|+ => {}
actual => return Err(::Error::WrongType(actual.clone()))
@@ -26,8 +26,7 @@ macro_rules! raw_from_impl {
}
macro_rules! from_option_impl {
- ($t:ty $(, $a:meta)*) => {
- $(#[$a])*
+ ($t:ty) => {
impl ::types::FromSql for $t {
fn from_sql(ty: &Type, raw: Option<&[u8]>) -> Result<$t> {
use Error;
@@ -46,11 +45,10 @@ macro_rules! from_option_impl {
}
macro_rules! from_map_impl {
- ($($expected:pat)|+, $t:ty, $blk:expr $(, $a:meta)*) => (
- $(#[$a])*
+ ($($expected:pat),+; $t:ty, $blk:expr) => (
impl ::types::FromSql for Option<$t> {
fn from_sql(ty: &Type, raw: Option<&[u8]>) -> Result