Skip to content

Commit 8ce2e92

Browse files
authored
Merge pull request #560 from asomers/dead_code-14-march-2023
Fix some dead_code warnings with the latest compiler
2 parents 1b48382 + 1580881 commit 8ce2e92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mockall/tests/automock_impl_trait_with_associated_types_for.rs

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

55
use mockall::*;
66

7-
struct Foo {}
7+
pub struct Foo {}
88
#[automock]
99
impl Iterator for Foo {
1010
type Item = u32;

mockall/tests/automock_unsafe_trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub unsafe trait Foo {
99
fn foo(&self) -> i32;
1010
}
1111

12-
struct Baz{}
12+
pub struct Baz{}
1313

1414
#[automock]
1515
unsafe impl Foo for Baz {

0 commit comments

Comments
 (0)