File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1289,17 +1289,17 @@ pub use mockall_derive::automock;
12891289/// can't be mocked. The downsides of using this attribute are:
12901290///
12911291/// * Mockall can't tell if a parameter isn't `'static`, so you must annotate
1292- /// such methods with the `#[mockall::concretize]` attribute.
1292+ /// such methods with the `#[mockall::concretize]` attribute.
12931293/// * Generic methods will share expectations for all argument types. That is,
12941294/// you won't be able to do `my_mock.expect_foo::<i32>(...)`.
12951295/// * It can't be used on methods with a closure argument (though this may be
1296- /// fixable).
1296+ /// fixable).
12971297/// * Concretized methods' expectations may only be matched with `.withf` or
1298- /// `.withf_st`, not `.with`.
1298+ /// `.withf_st`, not `.with`.
12991299/// * It only works for parameters that can be turned into a trait object.
1300- /// (may be fixable).
1300+ /// (may be fixable).
13011301/// * Mockall needs to know how to turn the function argument into a trait
1302- /// object. Given a generic parameter `T`, currently supported patterns are:
1302+ /// object. Given a generic parameter `T`, currently supported patterns are:
13031303/// - `T`
13041304/// - `&T`
13051305/// - `&mut T`
Original file line number Diff line number Diff line change 99
1010use mockall:: * ;
1111
12- struct Foo < T , V > ( ( T , V ) ) ;
12+ pub struct Foo < T , V > ( ( T , V ) ) ;
1313trait MyTrait {
1414 type Item ;
1515
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ mock! {
2424 }
2525}
2626
27- struct r#else { }
27+ pub struct r#else { }
2828#[ automock]
2929impl r#while for r#else {
3030 fn r#match ( & self ) { unimplemented ! ( ) }
You can’t perform that action at this time.
0 commit comments