Skip to content

Commit

Permalink
Merge pull request #223 from faradayio/another-unknown-type
Browse files Browse the repository at this point in the history
Fix more breakage similar to rust-lang/rust#36340 and 11f1186
  • Loading branch information
sfackler authored Nov 30, 2016
2 parents b0ddb4d + f063b97 commit af2a104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ impl InnerConnection {
let mut fields = vec![];
for row in rows {
let (name, type_) = {
let get_raw = |i| row.get(i).and_then(|r| r.as_ref().map(|r| &**r));
let get_raw = |i: usize| row.get(i).and_then(|r| r.as_ref().map(|r| &**r));
let ctx = SessionInfo::new(&self.parameters);
let name = try!(String::from_sql_nullable(&Type::Name, get_raw(0), &ctx)
.map_err(Error::Conversion));
Expand Down

0 comments on commit af2a104

Please sign in to comment.