From 80615b8579aa95f3237ae112e40ae4b84bb9207b Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 6 Mar 2019 10:29:01 -0800 Subject: [PATCH] use new actix-rt --- basics/Cargo.toml | 2 +- basics/src/main.rs | 3 +-- r2d2/Cargo.toml | 2 +- r2d2/src/main.rs | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/basics/Cargo.toml b/basics/Cargo.toml index 4e288328..95c7608b 100644 --- a/basics/Cargo.toml +++ b/basics/Cargo.toml @@ -6,7 +6,7 @@ workspace = "../" edition = "2018" [dependencies] -actix-rt = "0.1" +actix-rt = "0.2" actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-session = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-staticfiles = { git="https://github.com/actix/actix-web.git", branch = "1.0" } diff --git a/basics/src/main.rs b/basics/src/main.rs index 0700d9d2..344ff49c 100644 --- a/basics/src/main.rs +++ b/basics/src/main.rs @@ -138,6 +138,5 @@ fn main() -> io::Result<()> { .start(); println!("Starting http server: 127.0.0.1:8080"); - let _ = sys.run(); - Ok(()) + sys.run() } diff --git a/r2d2/Cargo.toml b/r2d2/Cargo.toml index b9f8de7c..7046f298 100644 --- a/r2d2/Cargo.toml +++ b/r2d2/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" workspace = "../" [dependencies] -actix-rt = "0.1" +actix-rt = "0.2" actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" } futures = "0.1" diff --git a/r2d2/src/main.rs b/r2d2/src/main.rs index c594253f..05d07849 100644 --- a/r2d2/src/main.rs +++ b/r2d2/src/main.rs @@ -53,6 +53,5 @@ fn main() -> io::Result<()> { .bind("127.0.0.1:8080")? .start(); - let _ = sys.run(); - Ok(()) + sys.run() }