From c1d33764822b1e4f7b632316bdd93eb1bdbe883e Mon Sep 17 00:00:00 2001 From: Ankur Srivastava Date: Thu, 23 Jul 2020 09:24:00 +0200 Subject: [PATCH] fix smol version upgrade Signed-off-by: Ankur Srivastava --- Cargo.toml | 2 +- examples/clouds_smol.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cf59b85..7dedc3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" name = "aiven_rs" readme = "README.md" repository = "https://github.com/ansrivas/aiven-rs" -version = "0.2.0" +version = "0.2.1" include = [ "**/*.rs", "Cargo.toml", diff --git a/examples/clouds_smol.rs b/examples/clouds_smol.rs index e9cbb87..fb6e435 100644 --- a/examples/clouds_smol.rs +++ b/examples/clouds_smol.rs @@ -22,9 +22,10 @@ use aiven_rs::{cloud::types::ResClouds, AivenClient}; use blocking::block_on; +use smol::Task; fn main() { - block_on(async { + block_on(Task::spawn(async { env_logger::init(); // use std::env; @@ -45,5 +46,5 @@ fn main() { // for cloud in &output.clouds { // println!("{:?}", cloud.cloud_name); // } - }); + })); }