File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- use std:: io :: ByRefReader ;
2- use std:: io :: util:: LimitReader ;
1+ use std:: old_io :: ByRefReader ;
2+ use std:: old_io :: util:: LimitReader ;
33
44use time:: Timespec ;
55use postgres:: Type ;
@@ -138,7 +138,7 @@ impl<T> RawToSql for Range<T> where T: PartialOrd+Normalizable+RawToSql {
138138 let mut inner_buf = vec ! [ ] ;
139139 try!( bound. value . raw_to_sql ( ty, & mut inner_buf) ) ;
140140 try!( buf. write_be_u32 ( inner_buf. len ( ) as u32 ) ) ;
141- try!( buf. write ( & * inner_buf) ) ;
141+ try!( buf. write_all ( & * inner_buf) ) ;
142142 }
143143 Ok ( ( ) )
144144 }
@@ -183,7 +183,7 @@ mod test {
183183 } )
184184 }
185185
186- fn test_type < T : PartialEq +FromSql +ToSql , S : fmt:: String > ( sql_type : & str , checks : & [ ( T , S ) ] ) {
186+ fn test_type < T : PartialEq +FromSql +ToSql , S : fmt:: Display > ( sql_type : & str , checks : & [ ( T , S ) ] ) {
187187 let conn = Connection :: connect ( "postgres://postgres@localhost" , & SslMode :: None ) . unwrap ( ) ;
188188 for & ( ref val, ref repr) in checks. iter ( ) {
189189 let stmt = conn. prepare ( & * format ! ( "SELECT {}::{}" , * repr, sql_type) ) . unwrap ( ) ;
Original file line number Diff line number Diff line change 11//! Types dealing with ranges of values
22#![ doc( html_root_url="https://sfackler.github.io/doc" ) ]
3- #![ allow ( unstable ) ]
3+ #![ feature ( io , core ) ]
44
55extern crate postgres;
66extern crate time;
You can’t perform that action at this time.
0 commit comments