Skip to content

Commit 21f6667

Browse files
committed
Couple more []s
1 parent 131fa11 commit 21f6667

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ impl DbError {
537537
Some(pos) => Some(ErrorPosition::Normal(try!(from_str(&*pos).ok_or(())))),
538538
None => match map.remove(&b'p') {
539539
Some(pos) => Some(ErrorPosition::Internal {
540-
position: try!(from_str(pos[]).ok_or(())),
540+
position: try!(from_str(&*pos).ok_or(())),
541541
query: try!(map.remove(&b'q').ok_or(()))
542542
}),
543543
None => None
@@ -550,7 +550,7 @@ impl DbError {
550550
datatype: map.remove(&b'd'),
551551
constraint: map.remove(&b'n'),
552552
file: try!(map.remove(&b'F').ok_or(())),
553-
line: try!(map.remove(&b'L').and_then(|l| from_str(l[])).ok_or(())),
553+
line: try!(map.remove(&b'L').and_then(|l| from_str(&*l)).ok_or(())),
554554
routine: try!(map.remove(&b'R').ok_or(())),
555555
})
556556
}

0 commit comments

Comments
 (0)