Skip to content

Commit

Permalink
Resolve compiler warnings in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
smangelsdorf committed Oct 20, 2017
1 parent dd5b990 commit 8d6e1f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/handler/trap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ mod tests {
fn error() {
let new_handler = || {
Ok(|state| {
let res = create_response(&state, StatusCode::Accepted, None);
Box::new(future::err(
(state, io::Error::last_os_error().into_handler_error()),
)) as Box<HandlerFuture>
Expand All @@ -154,7 +153,7 @@ mod tests {
#[test]
fn panic() {
let new_handler = || {
Ok(|state| {
Ok(|_| {
let val: Option<Box<HandlerFuture>> = None;
val.expect("test panic")
})
Expand Down

0 comments on commit 8d6e1f9

Please sign in to comment.