This repository was archived by the owner on Dec 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
- nightly
8
8
matrix :
9
9
include :
10
- - rust : nightly-2017-03-15
10
+ - rust : nightly-2017-10-09
11
11
env : CLIPPY=YESPLEASE
12
12
script : |
13
- cargo +nightly-2017-03-15 install clippy --vers "0.0.120 "
14
- cargo +nightly-2017-03-15 clippy
13
+ cargo +nightly-2017-10-09 install clippy --vers "0.0.165 "
14
+ cargo +nightly-2017-10-09 clippy -- -D warnings
15
15
before_script :
16
16
- |
17
17
pip install 'travis-cargo<0.2' --user &&
Original file line number Diff line number Diff line change @@ -341,6 +341,8 @@ impl OutputAssertionBuilder {
341
341
/// .stdout().not().contains("73")
342
342
/// .unwrap();
343
343
/// ```
344
+ // No clippy, we don't want to implement std::ops::Not :)
345
+ #[ cfg_attr( feature = "cargo-clippy" , allow( should_implement_trait) ) ]
344
346
pub fn not ( mut self ) -> Self {
345
347
self . expected_result = ! self . expected_result ;
346
348
self
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub enum OutputKind {
65
65
}
66
66
67
67
impl OutputKind {
68
- pub fn select < ' a > ( self , o : & ' a Output ) -> & ' a [ u8 ] {
68
+ pub fn select ( self , o : & Output ) -> & [ u8 ] {
69
69
match self {
70
70
OutputKind :: StdOut => & o. stdout ,
71
71
OutputKind :: StdErr => & o. stderr ,
You can’t perform that action at this time.
0 commit comments