Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Mar 4, 2024
1 parent 3512215 commit b1b13d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl MockServer {

server.reset_async().await;

return server
return server;
}

/// Asynchronously connects to a remote mock server that is running in standalone mode using
Expand Down Expand Up @@ -209,8 +209,8 @@ impl MockServer {
/// mock.assert();
/// ```
pub fn mock<F>(&self, config_fn: F) -> Mock
where
F: FnOnce(When, Then),
where
F: FnOnce(When, Then),
{
self.mock_async(config_fn).join()
}
Expand All @@ -236,8 +236,8 @@ impl MockServer {
/// });
/// ```
pub async fn mock_async<'a, F>(&'a self, spec_fn: F) -> Mock<'a>
where
F: FnOnce(When, Then),
where
F: FnOnce(When, Then),
{
let mut req = Rc::new(Cell::new(RequestRequirements::new()));
let mut res = Rc::new(Cell::new(MockServerHttpResponse::new()));
Expand Down
1 change: 0 additions & 1 deletion tests/examples/getting_started_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ async fn async_getting_started_test() {
// Ensure the mock server did respond as specified above.
assert_eq!(response.status(), 200);
}

1 change: 0 additions & 1 deletion tests/examples/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ mod url_matching_tests;
mod standalone_tests;
#[cfg(feature = "remote")]
mod x_www_form_urlencoded_tests;

1 change: 0 additions & 1 deletion tests/examples/reset_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ async fn reset_server_test() {
// Ensure the mock server did respond as specified.
assert_eq!(response.status(), 200);
}

0 comments on commit b1b13d4

Please sign in to comment.