Skip to content

Commit db1595d

Browse files
committed
Enable warnings for 2018 idioms
1 parent a30e86d commit db1595d

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 route_recognizer as router;
34

@@ -99,7 +100,7 @@ impl Error for RouterError {
99100
}
100101

101102
impl fmt::Display for RouterError {
102-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
103+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
103104
fmt::Display::fmt(&self.0, f)
104105
}
105106
}

0 commit comments

Comments
 (0)