Upgrade socket2 and log

This commit is contained in:
Steven Fackler
2018-01-09 20:32:55 -08:00
parent 89d39cc5ab
commit 863a295aae
5 changed files with 40 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
use fallible_iterator::FallibleIterator;
use postgres_protocol::message::backend::DataRowBody;
#[allow(unused_imports)]
use std::ascii::AsciiExt;
use std::io;
use std::ops::Range;
@@ -43,9 +44,8 @@ impl Sealed for str {
// FIXME ASCII-only case insensitivity isn't really the right thing to
// do. Postgres itself uses a dubious wrapper around tolower and JDBC
// uses the US locale.
stmt.iter().position(
|d| d.name().eq_ignore_ascii_case(self),
)
stmt.iter()
.position(|d| d.name().eq_ignore_ascii_case(self))
}
}