Skip to content

Commit 3cfa4a9

Browse files
committed
Enable 2018 edition
1 parent 0f3aa38 commit 3cfa4a9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors = ["wycats@gmail.com",
77
description = "HTTP Middleware interface using the conduit interface"
88
repository = "https://github.com/conduit-rust/conduit-middleware"
99
license = "MIT"
10+
edition = "2018"
1011

1112
[dependencies]
1213
conduit = { git = "https://github.com/jtgeibel/conduit", rev = "0deff5b" } # "0.9.0-alpha.2"

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![warn(rust_2018_idioms)]
2-
extern crate conduit;
3-
42
use conduit::{BoxError, Handler, RequestExt};
53

64
pub type BeforeResult = Result<(), BoxError>;
@@ -87,16 +85,14 @@ fn run_afters(
8785

8886
#[cfg(test)]
8987
mod tests {
90-
extern crate conduit_test;
91-
92-
use {AfterResult, AroundMiddleware, BeforeResult, Middleware, MiddlewareBuilder};
88+
use super::{AfterResult, AroundMiddleware, BeforeResult, Middleware, MiddlewareBuilder};
9389

9490
use std::any::Any;
9591
use std::io;
9692
use std::io::prelude::*;
9793
use std::net::SocketAddr;
9894

99-
use self::conduit_test::ResponseExt;
95+
use conduit_test::ResponseExt;
10096

10197
use conduit::{
10298
box_error, Body, Extensions, Handler, HeaderMap, Host, Method, RequestExt, Response,

0 commit comments

Comments
 (0)