Skip to content

Commit f84c71b

Browse files
committed
Merge pull request sfackler#5 from zsiciarz/master
rustup - remove MultiplicativeIterator
2 parents 8bab03d + f9cbdc8 commit f84c71b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/impls/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::iter::MultiplicativeIterator;
21
use std::io::prelude::*;
32
use 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);

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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)]
65
extern crate postgres;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy