Skip to content

Commit 2126455

Browse files
committed
Enable warnings for 2018 idioms
1 parent 09a1afc commit 2126455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![warn(rust_2018_idioms)]
12
extern crate conduit;
23
extern crate semver;
34

@@ -107,7 +108,7 @@ impl conduit::Request for MockRequest {
107108
fn scheme(&self) -> Scheme {
108109
Scheme::Http
109110
}
110-
fn host(&self) -> Host {
111+
fn host(&self) -> Host<'_> {
111112
Host::Name("example.com")
112113
}
113114
fn virtual_root(&self) -> Option<&str> {

0 commit comments

Comments
 (0)