Skip to content

Commit

Permalink
Merge pull request #593 from asomers/clippy-13-july-2024
Browse files Browse the repository at this point in the history
Clippy cleanup in the tests
  • Loading branch information
asomers committed Jul 13, 2024
2 parents a0aff68 + 0ce33ca commit 0949f8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mockall/tests/automock_generic_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::{
task::{Context, Poll},
};

struct Foo<T>(T);
pub struct Foo<T>(T);

#[automock]
impl<T> Future for Foo<T> {
Expand Down
2 changes: 1 addition & 1 deletion mockall/tests/automock_impl_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ impl Foo {
fn returning() {
let mut mock = MockFoo::new();
mock.expect_foo().returning(|| Box::new(4));
format!("{:?}", mock.foo());
let _ = format!("{:?}", mock.foo());
}
2 changes: 1 addition & 1 deletion mockall/tests/automock_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ pub mod m {
let ctx = mock_foo::baz_context();
ctx.expect()
.returning(|| Box::new(4));
format!("{:?}", mock_foo::baz());
let _ = format!("{:?}", mock_foo::baz());
}
}
2 changes: 1 addition & 1 deletion mockall/tests/mock_impl_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ mock!{
fn returning() {
let mut mock = MockFoo::new();
mock.expect_foo().returning(|| Box::new(4));
format!("{:?}", mock.foo());
let _ = format!("{:?}", mock.foo());
}

0 comments on commit 0949f8b

Please sign in to comment.