Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mockall/tests/automock_multiple_lifetime_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#![deny(warnings)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::extra_unused_lifetimes)]

use mockall::*;

Expand Down
1 change: 1 addition & 0 deletions mockall/tests/automock_where_self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! not generic.
#![deny(warnings)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::extra_unused_lifetimes)]

// Enclose the mocked trait within a non-public module. With some versions of
// rustc, that causes "unused method" errors for the generic code, but not the
Expand Down
1 change: 1 addition & 0 deletions mockall/tests/mock_life0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! https://github.com/asomers/mockall/issues/95
#![deny(warnings)]
#![allow(single_use_lifetimes)] // The lifetime is the whole point of this test
#![allow(clippy::extra_unused_lifetimes)]

use mockall::*;

Expand Down
2 changes: 0 additions & 2 deletions mockall_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,6 @@ fn assert_not_contains(output: &str, tokens: TokenStream) {
/// write as integration tests
mod mock {
use std::str::FromStr;
use super::super::*;
use super::*;

#[test]
Expand Down Expand Up @@ -1502,7 +1501,6 @@ mod mock {
/// write as integration tests
mod automock {
use std::str::FromStr;
use super::super::*;
use super::*;

#[test]
Expand Down