Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mksh committed Oct 27, 2023
1 parent 6afc345 commit 4b5f56e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,17 @@ impl VCRMiddleware {
self
}

pub fn with_modify_request<F>(mut self, modifier: F) -> Self
where F: Fn(&mut vcr_cassette::Request) + Send + Sync + 'static
pub fn with_modify_request<F>(mut self, modifier: F) -> Self
where
F: Fn(&mut vcr_cassette::Request) + Send + Sync + 'static,
{
self.modify_request.replace(Box::new(modifier));
self
}

pub fn with_modify_response<F>(mut self, modifier: F) -> Self
where F: Fn(&mut vcr_cassette::Response) + Send + Sync + 'static
where
F: Fn(&mut vcr_cassette::Response) + Send + Sync + 'static,
{
self.modify_response.replace(Box::new(modifier));
self
Expand Down

0 comments on commit 4b5f56e

Please sign in to comment.