refactor(rt): remove re-export of tokio::main (#1879)

Closes #1878.

BREAKING CHANGE: Replace all usage of `rt::main` with `tokio::main`.
This commit is contained in:
Daiki Mizukami
2019-07-23 02:06:36 +09:00
committed by Sean McArthur
parent 1d00bb29d4
commit 0d3cbe28fc
14 changed files with 14 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ use hyper::Client;
// A simple type alias so as to DRY.
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
#[hyper::rt::main]
#[tokio::main]
async fn main() -> Result<()> {
pretty_env_logger::init();