Skip to content

Commit 3bd6ef5

Browse files
test: fix doc test for sequences
`should_panic` doesn't accept an `expected` parameter for doc tests (unlike unit tests). Without this commit cargo doesn't recognise/render it as a doc test. Signed-off-by: Kiran Ostrolenk <[email protected]>
1 parent 770bc97 commit 3bd6ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockall/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
//! specify the order by using a [`Sequence`]. Any expectations may be added to
306306
//! the same sequence. They don't even need to come from the same object.
307307
//!
308-
//! ```should_panic(expected = "Method sequence violation")
308+
//! ```should_panic
309309
//! # use mockall::*;
310310
//! #[automock]
311311
//! trait Foo {

0 commit comments

Comments
 (0)