We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131fa11 commit 21f6667Copy full SHA for 21f6667
1 file changed
src/error.rs
@@ -537,7 +537,7 @@ impl DbError {
537
Some(pos) => Some(ErrorPosition::Normal(try!(from_str(&*pos).ok_or(())))),
538
None => match map.remove(&b'p') {
539
Some(pos) => Some(ErrorPosition::Internal {
540
- position: try!(from_str(pos[]).ok_or(())),
+ position: try!(from_str(&*pos).ok_or(())),
541
query: try!(map.remove(&b'q').ok_or(()))
542
}),
543
None => None
@@ -550,7 +550,7 @@ impl DbError {
550
datatype: map.remove(&b'd'),
551
constraint: map.remove(&b'n'),
552
file: try!(map.remove(&b'F').ok_or(())),
553
- line: try!(map.remove(&b'L').and_then(|l| from_str(l[])).ok_or(())),
+ line: try!(map.remove(&b'L').and_then(|l| from_str(&*l)).ok_or(())),
554
routine: try!(map.remove(&b'R').ok_or(())),
555
})
556
}
0 commit comments