Skip to content

Commit a151a5b

Browse files
committed
Update for rust changes
1 parent 867df81 commit a151a5b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ macro_rules! make_errors(
1414
($($code:expr => $error:ident),+) => (
1515
/// SQLSTATE error codes
1616
#[deriving(PartialEq, Eq, Clone, Show)]
17-
#[allow(missing_doc)]
17+
#[allow(missing_docs)]
1818
pub enum PostgresSqlState {
1919
$($error,)+
2020
UnknownSqlState(String)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
//! ```
5353
#![doc(html_root_url="https://sfackler.github.io/doc")]
5454
#![feature(macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)]
55-
#![warn(missing_doc)]
55+
#![warn(missing_docs)]
5656

5757
extern crate collections;
5858
extern crate openssl;

src/types/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<T> ArrayBase<T> {
139139
for (info1, info2) in self.info.iter().skip(1).zip(other.info.iter()) {
140140
assert!(info1 == info2, "Cannot join differently shaped arrays");
141141
}
142-
self.info.get_mut(0).len += 1;
142+
self.info[0].len += 1;
143143
self.data.extend(other.data.into_iter());
144144
}
145145

@@ -197,7 +197,7 @@ impl<T> InternalArray<T> for ArrayBase<T> {
197197

198198
impl<T> InternalMutableArray<T> for ArrayBase<T> {
199199
fn raw_get_mut<'a>(&'a mut self, idx: uint, _size: uint) -> &'a mut T {
200-
self.data.get_mut(idx)
200+
&mut self.data[idx]
201201
}
202202
}
203203

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use serialize::json;
55
use serialize::json::Json;
66
use std::collections::HashMap;
7-
use std::io::{MemWriter, BufReader};
7+
use std::io::{AsRefReader, MemWriter, BufReader};
88
use std::io::util::LimitReader;
99
use time::Timespec;
1010

0 commit comments

Comments
 (0)