File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 1- use std:: iter:: MultiplicativeIterator ;
21use std:: io:: prelude:: * ;
32use byteorder:: { ReadBytesExt , WriteBytesExt , BigEndian } ;
43
@@ -28,7 +27,7 @@ impl<T> FromSql for ArrayBase<Option<T>> where T: FromSql {
2827 let nele = if dim_info. len ( ) == 0 {
2928 0
3029 } else {
31- dim_info. iter ( ) . map ( | info| info. len ) . product ( )
30+ dim_info. iter ( ) . fold ( 1 , |product , info| product * info. len )
3231 } ;
3332
3433 let mut elements = Vec :: with_capacity ( nele) ;
Original file line number Diff line number Diff line change 11//! Multi-dimensional arrays with per-dimension specifiable lower bounds
22#![ doc( html_root_url="https://sfackler.github.io/rust-postgres-array/doc" ) ]
3- #![ feature( core) ]
43
54#[ macro_use( to_sql_checked) ]
65extern crate postgres;
You can’t perform that action at this time.
0 commit comments