Skip to content

Commit

Permalink
Suppress some needless_lifetimes warnings from Clippy
Browse files Browse the repository at this point in the history
Yes, they're needless, but they're there to exercise Mockall's parsing.
  • Loading branch information
asomers committed Mar 26, 2023
1 parent 0aa5910 commit 1b94d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mockall/tests/automock_generic_future_with_where_clause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
//!
//! Mockall must not emit the where clause for the method's Expectation.
#![deny(warnings)]
#![allow(clippy::needless_lifetimes)]

use mockall::*;
//use std::task::Context;

struct Foo<T: 'static, V: 'static>((T, V));
trait MyTrait {
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 @@ -2,6 +2,7 @@
//! Methods with a "where Self: ..." where clause should be mocked as concrete,
//! not generic.
#![deny(warnings)]
#![allow(clippy::needless_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

0 comments on commit 1b94d9c

Please sign in to comment.