From e9f5f00d3523739df1751eb3b7cdc7d85be9d1a1 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 22 Jul 2014 20:40:36 -0700 Subject: [PATCH] Remove Show impl from PostgresNotification --- src/lib/lib.rs | 1 - src/test/test.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/lib.rs b/src/lib/lib.rs index 305aa3f7..338eb439 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -277,7 +277,6 @@ impl PostgresNoticeHandler for DefaultNoticeHandler { } /// An asynchronous notification -#[deriving(Show)] pub struct PostgresNotification { /// The process ID of the notifying backend process pub pid: i32, diff --git a/src/test/test.rs b/src/test/test.rs index 833b0abd..a022b8ba 100644 --- a/src/test/test.rs +++ b/src/test/test.rs @@ -906,7 +906,7 @@ fn test_notification_iterator_some() { assert_eq!(&expected.channel, &channel); assert_eq!(&expected.payload, &payload); } - x => fail!("Expected {} but got {}", expected, x) + None => fail!("Unexpected result") } }