From 6edceaaeb21ba0a02cb3b4e79f67727266361420 Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Wed, 26 Aug 2015 23:59:09 -0700 Subject: [PATCH] Inherit from Sized Shuts off warnings --- src/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.rs b/src/message.rs index 765d56d3..ba15f0c2 100644 --- a/src/message.rs +++ b/src/message.rs @@ -441,7 +441,7 @@ fn read_row_description(buf: &mut R) -> io::Result { Ok(RowDescription { descriptions: types }) } -trait FromUsize { +trait FromUsize: Sized { fn from_usize(x: usize) -> io::Result; }