Update for rust changes
This commit is contained in:
parent
867df819d7
commit
a151a5ba02
@ -14,7 +14,7 @@ macro_rules! make_errors(
|
|||||||
($($code:expr => $error:ident),+) => (
|
($($code:expr => $error:ident),+) => (
|
||||||
/// SQLSTATE error codes
|
/// SQLSTATE error codes
|
||||||
#[deriving(PartialEq, Eq, Clone, Show)]
|
#[deriving(PartialEq, Eq, Clone, Show)]
|
||||||
#[allow(missing_doc)]
|
#[allow(missing_docs)]
|
||||||
pub enum PostgresSqlState {
|
pub enum PostgresSqlState {
|
||||||
$($error,)+
|
$($error,)+
|
||||||
UnknownSqlState(String)
|
UnknownSqlState(String)
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
//! ```
|
//! ```
|
||||||
#![doc(html_root_url="https://sfackler.github.io/doc")]
|
#![doc(html_root_url="https://sfackler.github.io/doc")]
|
||||||
#![feature(macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)]
|
#![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 collections;
|
||||||
extern crate openssl;
|
extern crate openssl;
|
||||||
|
@ -139,7 +139,7 @@ impl<T> ArrayBase<T> {
|
|||||||
for (info1, info2) in self.info.iter().skip(1).zip(other.info.iter()) {
|
for (info1, info2) in self.info.iter().skip(1).zip(other.info.iter()) {
|
||||||
assert!(info1 == info2, "Cannot join differently shaped arrays");
|
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());
|
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> {
|
impl<T> InternalMutableArray<T> for ArrayBase<T> {
|
||||||
fn raw_get_mut<'a>(&'a mut self, idx: uint, _size: uint) -> &'a mut 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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
use serialize::json;
|
use serialize::json;
|
||||||
use serialize::json::Json;
|
use serialize::json::Json;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io::{MemWriter, BufReader};
|
use std::io::{AsRefReader, MemWriter, BufReader};
|
||||||
use std::io::util::LimitReader;
|
use std::io::util::LimitReader;
|
||||||
use time::Timespec;
|
use time::Timespec;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user