Skip to content

Commit 82517b1

Browse files
committed
Yay Index!
1 parent 052fe93 commit 82517b1

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ rev = "8696b091402f67a655c3b924c118392cb67540a3"
2323
[dependencies.phf]
2424

2525
git = "https://github.com/sfackler/rust-phf"
26-
rev = "a90e7cc22d8acfebf787726b5352dc39408a9800"
26+
rev = "60f391c38b548f5134addb116d2adcfa18ba3367"
2727

2828
[dependencies.phf_mac]
2929

3030
git = "https://github.com/sfackler/rust-phf"
31-
rev = "a90e7cc22d8acfebf787726b5352dc39408a9800"
31+
rev = "60f391c38b548f5134addb116d2adcfa18ba3367"

src/lib/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,8 +1400,8 @@ impl<'stmt> PostgresRow<'stmt> {
14001400
Some(idx) => idx,
14011401
None => return Err(PgInvalidColumn)
14021402
};
1403-
FromSql::from_sql(&self.stmt.result_desc.get(idx).ty,
1404-
self.data.get(idx))
1403+
FromSql::from_sql(&self.stmt.result_desc[idx].ty,
1404+
&self.data[idx])
14051405
}
14061406

14071407
/// Retrieves the contents of a field of the row.

src/lib/types/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<T> MutableArray<T> for ArrayBase<T> {
191191

192192
impl<T> InternalArray<T> for ArrayBase<T> {
193193
fn raw_get<'a>(&'a self, idx: uint, _size: uint) -> &'a T {
194-
self.data.get(idx)
194+
&self.data[idx]
195195
}
196196
}
197197

submodules/rust-phf

Submodule rust-phf updated from a90e7cc to 60f391c

0 commit comments

Comments
 (0)