dtolnay / async-trait

Type erasure for async trait methods
Apache License 2.0
1.81k stars 84 forks source link

Ask a question #115

Closed somewheve closed 4 years ago

somewheve commented 4 years ago

https://github.com/somewheve/qaclient-rs

In this project, I try to use async-trait and cfg async_std to use build API
but

error[E0599]: no method named `execute` found for struct `qaclient::ck::Ck<'_>` in the current scope
  --> examples/ck_test.rs:12:8
   |
12 |     ck.execute(sqlx);
   |        ^^^^^^^ method not found in `qaclient::ck::Ck<'_>`

warning: unused import: `Operation`
 --> examples/ck_test.rs:1:20
  |
1 | use qaclient::ck::{Operation, Ck};
  |                    ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

This clickhouse_driver comes from https://github.com/suharev7/clickhouse-rs cargo build is passed , Hope you can help me with this!

somewheve commented 4 years ago

you can see this error by running ck_test.rs in exmaples. rustc version

rustc 1.46.0-nightly (7750c3d46 2020-06-26)

on Manjaro Linux

somewheve commented 4 years ago

I just forget to use async to run api