Skip to content

Commit 1b94d9c

Browse files
committed
Suppress some needless_lifetimes warnings from Clippy
Yes, they're needless, but they're there to exercise Mockall's parsing.
1 parent 0aa5910 commit 1b94d9c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mockall/tests/automock_generic_future_with_where_clause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
//!
66
//! Mockall must not emit the where clause for the method's Expectation.
77
#![deny(warnings)]
8+
#![allow(clippy::needless_lifetimes)]
89

910
use mockall::*;
10-
//use std::task::Context;
1111

1212
struct Foo<T: 'static, V: 'static>((T, V));
1313
trait MyTrait {

mockall/tests/automock_where_self.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//! Methods with a "where Self: ..." where clause should be mocked as concrete,
33
//! not generic.
44
#![deny(warnings)]
5+
#![allow(clippy::needless_lifetimes)]
56

67
// Enclose the mocked trait within a non-public module. With some versions of
78
// rustc, that causes "unused method" errors for the generic code, but not the

0 commit comments

Comments
 (0)