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;
1289
1289
/// can't be mocked. The downsides of using this attribute are:
1290
1290
///
1291
1291
/// * 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.
1293
1293
/// * Generic methods will share expectations for all argument types. That is,
1294
1294
/// you won't be able to do `my_mock.expect_foo::<i32>(...)`.
1295
1295
/// * It can't be used on methods with a closure argument (though this may be
1296
- /// fixable).
1296
+ /// fixable).
1297
1297
/// * Concretized methods' expectations may only be matched with `.withf` or
1298
- /// `.withf_st`, not `.with`.
1298
+ /// `.withf_st`, not `.with`.
1299
1299
/// * It only works for parameters that can be turned into a trait object.
1300
- /// (may be fixable).
1300
+ /// (may be fixable).
1301
1301
/// * 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:
1303
1303
/// - `T`
1304
1304
/// - `&T`
1305
1305
/// - `&mut T`
Original file line number Diff line number Diff line change 9
9
10
10
use mockall:: * ;
11
11
12
- struct Foo < T , V > ( ( T , V ) ) ;
12
+ pub struct Foo < T , V > ( ( T , V ) ) ;
13
13
trait MyTrait {
14
14
type Item ;
15
15
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ mock! {
24
24
}
25
25
}
26
26
27
- struct r#else { }
27
+ pub struct r#else { }
28
28
#[ automock]
29
29
impl r#while for r#else {
30
30
fn r#match ( & self ) { unimplemented ! ( ) }
You can’t perform that action at this time.
0 commit comments