Skip to content

Commit 1234ddc

Browse files
authored
Merge pull request #579 from JosiahBull/use-get-instead-index-slice
fix(mockall_derive): add allow(clippy::indexing_slicing) to generated module.
2 parents 7fe4074 + f8a110a commit 1234ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockall_derive/src/mock_function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ impl MockFunction {
860860
quote!(
861861
#(#attrs)*
862862
#[allow(missing_docs)]
863-
#[allow(clippy::too_many_arguments)]
863+
#[allow(clippy::too_many_arguments, clippy::indexing_slicing)]
864864
pub mod #inner_mod_ident {
865865
use super::*;
866866
use ::mockall::CaseTreeExt;

0 commit comments

Comments
 (0)