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

Bump clippy version and rust nightly to 2017-10-09 #47

Merged
merged 2 commits into from
Oct 9, 2017
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
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ rust:
- nightly
matrix:
include:
- rust: nightly-2017-03-15
- rust: nightly-2017-10-09
env: CLIPPY=YESPLEASE
script: |
cargo +nightly-2017-03-15 install clippy --vers "0.0.120"
cargo +nightly-2017-03-15 clippy
cargo +nightly-2017-10-09 install clippy --vers "0.0.165"
cargo +nightly-2017-10-09 clippy -- -D warnings
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
Expand Down
2 changes: 2 additions & 0 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ impl OutputAssertionBuilder {
/// .stdout().not().contains("73")
/// .unwrap();
/// ```
// No clippy, we don't want to implement std::ops::Not :)
#[cfg_attr(feature = "cargo-clippy", allow(should_implement_trait))]
pub fn not(mut self) -> Self {
self.expected_result = ! self.expected_result;
self
Expand Down
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub enum OutputKind {
}

impl OutputKind {
pub fn select<'a>(self, o: &'a Output) -> &'a [u8] {
pub fn select(self, o: &Output) -> &[u8] {
match self {
OutputKind::StdOut => &o.stdout,
OutputKind::StdErr => &o.stderr,
Expand Down