File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ documentation = "https://sfackler.github.io/rust-postgres-array/doc/postgres_arr
9
9
10
10
[dependencies ]
11
11
postgres = " 0.7.1"
12
- byteorder = " 0.2.11 "
12
+ byteorder = " 0.3 "
13
13
14
14
[dev-dependencies ]
15
15
rustc-serialize = " 0.3"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ impl<T> FromSql for ArrayBase<Option<T>> where T: FromSql {
19
19
let _element_type: Oid = try!( raw. read_u32 :: < BigEndian > ( ) ) ;
20
20
21
21
let mut dim_info = Vec :: with_capacity ( ndim) ;
22
- for _ in range ( 0 , ndim) {
22
+ for _ in ( 0 .. ndim) {
23
23
dim_info. push ( DimensionInfo {
24
24
len : try!( raw. read_u32 :: < BigEndian > ( ) ) as usize ,
25
25
lower_bound : try!( raw. read_i32 :: < BigEndian > ( ) ) as isize ,
@@ -32,7 +32,7 @@ impl<T> FromSql for ArrayBase<Option<T>> where T: FromSql {
32
32
} ;
33
33
34
34
let mut elements = Vec :: with_capacity ( nele) ;
35
- for _ in range ( 0 , nele) {
35
+ for _ in ( 0 .. nele) {
36
36
let len = try!( raw. read_i32 :: < BigEndian > ( ) ) ;
37
37
if len < 0 {
38
38
elements. push ( None ) ;
You can’t perform that action at this time.
0 commit comments