Skip to content

Commit 72a5b60

Browse files
committed
Fix for upstream changes
1 parent b0d29e9 commit 72a5b60

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/impls/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
use std::iter::MultiplicativeIterator;
44

55
use time::Timespec;
@@ -137,7 +137,7 @@ fn raw_to_array<T>(array: &ArrayBase<Option<T>>, ty: &Type) -> Vec<u8> where T:
137137
let mut inner_buf = vec![];
138138
let _ = val.raw_to_sql(&ty.element_type().unwrap(), &mut inner_buf);
139139
let _ = buf.write_be_i32(inner_buf.len() as i32);
140-
let _ = buf.write(&*inner_buf);
140+
let _ = buf.write_all(&*inner_buf);
141141
}
142142
None => {
143143
let _ = buf.write_be_i32(-1);
@@ -167,7 +167,7 @@ mod test {
167167
use postgres::{Connection, SslMode, FromSql, ToSql};
168168
use ArrayBase;
169169

170-
fn test_type<T: PartialEq+FromSql+ToSql, S: fmt::String>(sql_type: &str, checks: &[(T, S)]) {
170+
fn test_type<T: PartialEq+FromSql+ToSql, S: fmt::Display>(sql_type: &str, checks: &[(T, S)]) {
171171
let conn = Connection::connect("postgres://postgres@localhost", &SslMode::None).unwrap();
172172
for &(ref val, ref repr) in checks.iter() {
173173
let stmt = conn.prepare(&format!("SELECT {}::{}", *repr, sql_type)[]).unwrap();

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Multi-dimensional arrays with per-dimension specifiable lower bounds
22
#![doc(html_root_url="https://sfackler.github.io/doc")]
3-
#![allow(unstable)]
3+
#![feature(core, io)]
4+
#![cfg_attr(test, feature(collections))]
45

56
extern crate postgres;
67
extern crate time;

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