Skip to content

Commit 72eec35

Browse files
committed
formatting
1 parent 10aa166 commit 72eec35

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

site/src/server.rs

+12-2
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,12 @@ mod tests {
827827
.body(hyper::Body::from(expected_body))
828828
.unwrap();
829829
assert_eq!(response.headers(), expected_response.headers());
830-
assert_eq!(hyper::body::to_bytes(response.into_body()).await.unwrap(), hyper::body::to_bytes(expected_response.into_body()).await.unwrap());
830+
assert_eq!(
831+
hyper::body::to_bytes(response.into_body()).await.unwrap(),
832+
hyper::body::to_bytes(expected_response.into_body())
833+
.await
834+
.unwrap()
835+
);
831836

832837
// Test case 2: Path is "/compare.html"
833838
let req = Request::default();
@@ -842,6 +847,11 @@ mod tests {
842847
.body(hyper::Body::from(expected_body))
843848
.unwrap();
844849
assert_eq!(response.headers(), expected_response.headers());
845-
assert_eq!(hyper::body::to_bytes(response.into_body()).await.unwrap(), hyper::body::to_bytes(expected_response.into_body()).await.unwrap());
850+
assert_eq!(
851+
hyper::body::to_bytes(response.into_body()).await.unwrap(),
852+
hyper::body::to_bytes(expected_response.into_body())
853+
.await
854+
.unwrap()
855+
);
846856
}
847857
}

0 commit comments

Comments
 (0)