Skip to content

Commit

Permalink
Merge pull request #582 from asomers/dead_code_struct
Browse files Browse the repository at this point in the history
Fix some dead_code warnings in the tests with latest nightly compiler
  • Loading branch information
asomers authored Jun 9, 2024
2 parents 1234ddc + 684079a commit 11a9206
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mockall/tests/automock_generic_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use mockall::*;

pub struct GenericStruct<T, V> {
_t: T,
_v: V
pub t: T,
pub v: V
}
#[automock]
impl<T, V> GenericStruct<T, V> {
Expand Down
4 changes: 2 additions & 2 deletions mockall/tests/automock_generic_struct_with_bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use mockall::*;

pub struct GenericStruct<T: Copy, V: Clone> {
_t: T,
_v: V
pub t: T,
pub v: V
}
#[automock]
impl<T: Copy + Copy, V: Clone + Copy> GenericStruct<T, V> {
Expand Down
2 changes: 1 addition & 1 deletion mockall/tests/automock_generic_struct_with_where_clause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use mockall::*;

pub struct GenericStruct<T> {
_t: T,
pub t: T,
}
#[automock]
impl<T> GenericStruct<T>
Expand Down

0 comments on commit 11a9206

Please sign in to comment.