Skip to content

Commit 8b5d5d0

Browse files
committed
Use ? in place of try! macro
1 parent aaa3661 commit 8b5d5d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct ConditionalGet;
1818

1919
impl Middleware for ConditionalGet {
2020
fn after(&self, req: &mut dyn Request, res: Response) -> Response {
21-
let mut res = try!(res);
21+
let mut res = res?;
2222

2323
match req.method() {
2424
Method::Get | Method::Head => {

0 commit comments

Comments
 (0)