Skip to content

Commit

Permalink
Import macros explicitly like it's 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
alsuren committed Jan 20, 2020
1 parent 46c69b4 commit 9fcf2df
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions examples/handlers/simple_async_handlers_await/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
//! A basic example showing the request components

extern crate futures;
extern crate gotham;
#[macro_use]
extern crate gotham_derive;
extern crate hyper;
extern crate mime;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate tokio;

use futures::prelude::*;
use std::pin::Pin;
use std::time::{Duration, Instant};
Expand All @@ -23,6 +12,8 @@ use gotham::router::builder::DefineSingleRoute;
use gotham::router::builder::{build_simple_router, DrawRoutes};
use gotham::router::Router;
use gotham::state::{FromState, State};
use gotham_derive::{StateData, StaticResponseExtender};
use serde_derive::Deserialize;

use tokio::time::delay_until;

Expand Down

0 comments on commit 9fcf2df

Please sign in to comment.