diff --git a/src/mock.rs b/src/mock.rs index 05c04e8..790109a 100644 --- a/src/mock.rs +++ b/src/mock.rs @@ -253,6 +253,7 @@ impl Debug for Matcher { /// [`register`]: MockServer::register /// [`mount`]: Mock::mount /// [`mount_as_scoped`]: Mock::mount_as_scoped +#[must_use = "`Mock`s have to be mounted or registered with a `MockServer` to become effective"] pub struct Mock { pub(crate) matchers: Vec, pub(crate) response: Box,