Update for rust changes

This commit is contained in:
Steven Fackler 2014-10-31 08:51:27 -07:00
parent 867df819d7
commit a151a5ba02
4 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ macro_rules! make_errors(
($($code:expr => $error:ident),+) => (
/// SQLSTATE error codes
#[deriving(PartialEq, Eq, Clone, Show)]
#[allow(missing_doc)]
#[allow(missing_docs)]
pub enum PostgresSqlState {
$($error,)+
UnknownSqlState(String)

View File

@ -52,7 +52,7 @@
//! ```
#![doc(html_root_url="https://sfackler.github.io/doc")]
#![feature(macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)]
#![warn(missing_doc)]
#![warn(missing_docs)]
extern crate collections;
extern crate openssl;

View File

@ -139,7 +139,7 @@ impl<T> ArrayBase<T> {
for (info1, info2) in self.info.iter().skip(1).zip(other.info.iter()) {
assert!(info1 == info2, "Cannot join differently shaped arrays");
}
self.info.get_mut(0).len += 1;
self.info[0].len += 1;
self.data.extend(other.data.into_iter());
}
@ -197,7 +197,7 @@ impl<T> InternalArray<T> for ArrayBase<T> {
impl<T> InternalMutableArray<T> for ArrayBase<T> {
fn raw_get_mut<'a>(&'a mut self, idx: uint, _size: uint) -> &'a mut T {
self.data.get_mut(idx)
&mut self.data[idx]
}
}

View File

@ -4,7 +4,7 @@
use serialize::json;
use serialize::json::Json;
use std::collections::HashMap;
use std::io::{MemWriter, BufReader};
use std::io::{AsRefReader, MemWriter, BufReader};
use std::io::util::LimitReader;
use time::Timespec;