diff --git a/src/mock_set.rs b/src/mock_set.rs index 3b0c164..996d6f0 100644 --- a/src/mock_set.rs +++ b/src/mock_set.rs @@ -94,7 +94,7 @@ impl MountedMockSet { /// /// It will stop matching against incoming requests, regardless of its specification. pub(crate) fn deactivate(&mut self, mock_id: MockId) { - let mut mock = &mut self[mock_id]; + let mock = &mut self[mock_id]; mock.1 = MountedMockState::OutOfScope; } diff --git a/tests/mocks.rs b/tests/mocks.rs index 51fe0a2..be0fb5d 100644 --- a/tests/mocks.rs +++ b/tests/mocks.rs @@ -13,7 +13,7 @@ async fn new_starts_the_server() { let mock_server = MockServer::start().await; // Assert - assert!(TcpStream::connect(&mock_server.address()).is_ok()) + assert!(TcpStream::connect(mock_server.address()).is_ok()) } #[async_std::test]