clickhouse-rs icon indicating copy to clipboard operation
clickhouse-rs copied to clipboard

build error `0.2.0-alpha.5`

Open yorkart opened this issue 5 years ago • 3 comments

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

yorkart avatar Nov 06 '20 14:11 yorkart

用github的版本就好了

somewheve avatar Nov 08 '20 11:11 somewheve

I release a new version with the fix soon.

suharev7 avatar Nov 08 '20 12:11 suharev7

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" }

jaxrtech avatar Dec 18 '20 09:12 jaxrtech