Skip to content

Commit 11a9206

Browse files
authored
Merge pull request #582 from asomers/dead_code_struct
Fix some dead_code warnings in the tests with latest nightly compiler
2 parents 1234ddc + 684079a commit 11a9206

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

mockall/tests/automock_generic_struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use mockall::*;
66

77
pub struct GenericStruct<T, V> {
8-
_t: T,
9-
_v: V
8+
pub t: T,
9+
pub v: V
1010
}
1111
#[automock]
1212
impl<T, V> GenericStruct<T, V> {

mockall/tests/automock_generic_struct_with_bounds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use mockall::*;
66

77
pub struct GenericStruct<T: Copy, V: Clone> {
8-
_t: T,
9-
_v: V
8+
pub t: T,
9+
pub v: V
1010
}
1111
#[automock]
1212
impl<T: Copy + Copy, V: Clone + Copy> GenericStruct<T, V> {

mockall/tests/automock_generic_struct_with_where_clause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use mockall::*;
66

77
pub struct GenericStruct<T> {
8-
_t: T,
8+
pub t: T,
99
}
1010
#[automock]
1111
impl<T> GenericStruct<T>

0 commit comments

Comments
 (0)