clickhouse-rs
clickhouse-rs copied to clipboard
build error `0.2.0-alpha.5`
error[E0308]: mismatched types
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/clickhouse-rs-0.2.0-alpha.5/src/types/query_result/mod.rs:106:29
|
106 | / ... Box::pin(
107 | | ... stream::iter(Rows {
108 | | ... row: 0,
109 | | ... block_ref,
... |
112 | | ... .map(|row| -> Result<Row<'static, Simple>> { Ok(row) }),
113 | | ... )
| |_______________________^ lifetime mismatch
|
= note: expected enum std::result::Result<types::block::row::Row<'static, _>, _>
found enum std::result::Result<types::block::row::Row<'a, _>, _>
note: the lifetime 'a as defined on the impl at 28:6...
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/clickhouse-rs-0.2.0-alpha.5/src/types/query_result/mod.rs:28:6
|
28 | impl<'a> QueryResult<'a> {
| ^^
= note: ...does not necessarily outlive the static lifetime
用github的版本就好了
I release a new version with the fix soon.
This seems to be fixed using the latest commit: a1d2b29d0f01de2b3d9183ae95a61c6c72ffb8c4 Might want to push a new release to cargo 😄. Thanks for your work on this library!
[dependencies]
clickhouse-rs = { git = "https://github.com/suharev7/clickhouse-rs", rev = "a1d2b29d0f01de2b3d9183ae95a61c6c72ffb8c4" }