Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke-ota committed May 23, 2020
1 parent f8c41bc commit 565d458
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/wildcard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ async fn add_one(cx: Request<()>) -> Result<String, tide::Error> {
}

async fn add_two(cx: Request<()>) -> Result<String, tide::Error> {
let one= cx.param::<i64>("one").map_err(|err| tide::Error::new(StatusCode::BadRequest, err))?;
let two= cx.param::<i64>("two").map_err(|err| tide::Error::new(StatusCode::BadRequest, err))?;
let one = cx
.param::<i64>("one")
.map_err(|err| tide::Error::new(StatusCode::BadRequest, err))?;
let two = cx
.param::<i64>("two")
.map_err(|err| tide::Error::new(StatusCode::BadRequest, err))?;
Ok((one + two).to_string())
}

Expand Down

0 comments on commit 565d458

Please sign in to comment.