Skip to content

Commit

Permalink
Fix tide for 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Licenser committed Apr 29, 2020
1 parent 2845002 commit 4a228aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tremor-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ async fn load_query_file(world: &World, file_name: &str) -> Result<usize> {
// Err(e) => Ok(e.into()),
// }
// }
fn fix_tide(r: api::Result<tide::Response>) -> tide::Response {
match r {
fn fix_tide(r: api::Result<tide::Response>) -> tide::Result {
Ok(match r {
Ok(r) => r,
Err(e) => e.into(),
}
})
}

#[cfg_attr(tarpaulin, skip)]
Expand Down

0 comments on commit 4a228aa

Please sign in to comment.