fix tests

This commit is contained in:
2020-01-07 00:46:12 +08:00
parent 86deb61ba0
commit 24e0c968ee
3 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ NOTE: From version 1.1.0 dingtalk uses reqwest 0.10.0's async/await API.
Sample 1:
```rust
use dingtalk::DingTalk;
#[tokio::main]
pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
let dt = DingTalk::new("<token>", "");
@@ -18,6 +20,8 @@ pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
```
Need use crate: `tokio = { version = "0.2.6", features = ["full"] }`.
Sample 2 (Read token from file):
```rust
#[tokio::main]