Skip to content

Commit 7fe4074

Browse files
authored
Merge pull request #581 from asomers/clippy-25-may-2024
Pacify Clippy
2 parents a774f4e + 601bdbe commit 7fe4074

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

mockall/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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`

mockall/tests/automock_generic_future_with_where_clause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use mockall::*;
1111

12-
struct Foo<T, V>((T, V));
12+
pub struct Foo<T, V>((T, V));
1313
trait MyTrait {
1414
type Item;
1515

mockall/tests/raw_identifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mock! {
2424
}
2525
}
2626

27-
struct r#else {}
27+
pub struct r#else {}
2828
#[automock]
2929
impl r#while for r#else {
3030
fn r#match(&self) {unimplemented!()}

0 commit comments

Comments
 (0)