Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit 67d353e

Browse files
committed
Fix clippy lints
1 parent be32ad7 commit 67d353e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/assert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ impl OutputAssertionBuilder {
341341
/// .stdout().not().contains("73")
342342
/// .unwrap();
343343
/// ```
344+
// No clippy, we don't want to implement std::ops::Not :)
345+
#[cfg_attr(feature = "cargo-clippy", allow(should_implement_trait))]
344346
pub fn not(mut self) -> Self {
345347
self.expected_result = ! self.expected_result;
346348
self

src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub enum OutputKind {
6565
}
6666

6767
impl OutputKind {
68-
pub fn select<'a>(self, o: &'a Output) -> &'a [u8] {
68+
pub fn select(self, o: &Output) -> &[u8] {
6969
match self {
7070
OutputKind::StdOut => &o.stdout,
7171
OutputKind::StdErr => &o.stderr,

0 commit comments

Comments
 (0)