We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8bab03d + f9cbdc8 commit f84c71bCopy full SHA for f84c71b
2 files changed
src/impls/mod.rs
@@ -1,4 +1,3 @@
1
-use std::iter::MultiplicativeIterator;
2
use std::io::prelude::*;
3
use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian};
4
@@ -28,7 +27,7 @@ impl<T> FromSql for ArrayBase<Option<T>> where T: FromSql {
28
27
let nele = if dim_info.len() == 0 {
29
0
30
} else {
31
- dim_info.iter().map(|info| info.len).product()
+ dim_info.iter().fold(1, |product, info| product * info.len)
32
};
33
34
let mut elements = Vec::with_capacity(nele);
src/lib.rs
@@ -1,6 +1,5 @@
//! Multi-dimensional arrays with per-dimension specifiable lower bounds
#![doc(html_root_url="https://sfackler.github.io/rust-postgres-array/doc")]
-#![feature(core)]
5
#[macro_use(to_sql_checked)]
6
extern crate postgres;
0 commit comments