Upgrade fallible-iterator

This commit is contained in:
Steven Fackler 2019-03-10 16:32:28 -07:00
parent e434aadf04
commit 3b31551f73
6 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ readme = "../README.md"
base64 = "0.10"
byteorder = "1.0"
bytes = "0.4"
fallible-iterator = "0.1"
fallible-iterator = "0.2"
generic-array = "0.12"
hmac = "0.7"
md5 = "0.6"

View File

@ -18,7 +18,7 @@ runtime = ["tokio-postgres/runtime", "tokio", "lazy_static", "log"]
[dependencies]
bytes = "0.4"
fallible-iterator = "0.1"
fallible-iterator = "0.2"
futures = "0.1"
tokio-postgres = { version = "0.4.0-rc.2", path = "../tokio-postgres", default-features = false }

View File

@ -33,7 +33,7 @@ with-serde_json-1 = ["serde-1", "serde_json-1"]
[dependencies]
antidote = "1.0"
bytes = "0.4"
fallible-iterator = "0.1.6"
fallible-iterator = "0.2"
futures = "0.1.7"
log = "0.4"
percent-encoding = "1.0"

View File

@ -121,7 +121,7 @@ impl PollPrepare for Prepare {
let columns = match message {
Some(Message::RowDescription(body)) => body
.fields()
.map(|f| (f.name().to_string(), f.type_oid()))
.map(|f| Ok((f.name().to_string(), f.type_oid())))
.collect()
.map_err(Error::parse)?,
Some(Message::NoData) => vec![],

View File

@ -77,7 +77,7 @@ impl Stream for SimpleQueryStream {
Some(Message::RowDescription(body)) => {
let columns = body
.fields()
.map(|f| f.name().to_string())
.map(|f| Ok(f.name().to_string()))
.collect::<Vec<_>>()
.map_err(Error::parse)?
.into();

View File

@ -354,7 +354,7 @@ impl<'a, T: FromSql<'a>> FromSql<'a> for Vec<T> {
array
.values()
.and_then(|v| T::from_sql_nullable(member_type, v))
.map(|v| T::from_sql_nullable(member_type, v))
.collect()
}
@ -436,7 +436,7 @@ where
raw: &'a [u8],
) -> Result<HashMap<String, Option<String>, S>, Box<dyn Error + Sync + Send>> {
types::hstore_from_sql(raw)?
.map(|(k, v)| (k.to_owned(), v.map(str::to_owned)))
.map(|(k, v)| Ok((k.to_owned(), v.map(str::to_owned))))
.collect()
}