Upgrade fallible-iterator
This commit is contained in:
parent
e434aadf04
commit
3b31551f73
@ -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"
|
||||
|
@ -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 }
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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![],
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user