This repository was archived by the owner on Dec 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,19 @@ script:
15
15
- |
16
16
travis-cargo build &&
17
17
travis-cargo test &&
18
- travis-cargo bench &&
19
- travis-cargo --only stable doc
18
+ travis-cargo bench
20
19
addons :
21
20
apt :
22
21
packages :
23
22
- libcurl4-openssl-dev
24
23
- libelf-dev
25
24
- libdw-dev
26
25
after_success :
27
- - travis-cargo --only stable doc-upload
28
- - rm tests/skeptic.rs # "skip" skeptic doctests for coverage
29
26
- travis-cargo coveralls --no-sudo
30
27
notifications :
31
28
email :
32
29
on_success : never
33
30
env :
34
31
global :
35
- - TRAVIS_CARGO_NIGHTLY_FEATURE=dev
32
+ - TRAVIS_CARGO_NIGHTLY_FEATURE=
36
33
- secure : OUHDuY7h82pYkis1oJW/dO029Rp/HLGT7od5VQJ1eki0M+Oawj7L0tjQPGLKLjj6hA1Sh8XeeelQgrlwVQfkrvwgYLRfmEdbP8z2PclmbxvXmRFysM5R9dN15HYx9AlUsDiHF9otmkNzJPBghlLvvKbzjp7Mlr5cdBaFZ9psafJLOgIWTIpiuHvYhmKhaXG6bIpLw6pi9NWdUYcd5s/gy1n1v5a4oPH/JB9V3Zc8+tv/EPvRynzSRK1jghD7KtppQoRRt92OCQGZ2BYLoTVpkt/bPS50D558xbVoDPyNNgcPM86eSSNbgp8llASJMFVNWWBZYLmbQ5x/219G907YbKWDLbcwMJL0H/JFbtErLarDU5XiEFBELs0Zx2t0S96xOM+ZWxZvWBk3UuKTBaXIKc921JEU+uHHUsPp3zasiMZWN3Rv2ia68HZGvYtwAPG5PWJTeh7BAo6dLGNDISVE/uHhf64E+ZvH3ToEmadx/yimedE7IOBh7kvPTnr1X5RFWNEJYOVSWJ531LoE3WHO9/UKPRLx01fGHzJKXMyWcp2fQjwCsu9zwThk3N4kYQJfi5YNmJw1EiOERiQ0nRckaUC5sA5KE+ZJmEa4ztfe7RMTVceCNagVdsqH8IHWgM+ROKNNKYDjqKbGSiE0RVwUdITUFLeQDWzQYfzsWRQpFV0=
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use errors::*;
9
9
pub fn render ( & Changeset { ref diffs, .. } : & Changeset ) -> Result < String > {
10
10
let mut t = String :: new ( ) ;
11
11
12
- for i in 0 .. diffs. len ( ) {
13
- match diffs [ i ] {
12
+ for ( i , diff ) in diffs. iter ( ) . enumerate ( ) {
13
+ match * diff {
14
14
Difference :: Same ( ref x) => {
15
15
writeln ! ( t, " {}" , x) ?;
16
16
}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ impl Assert {
161
161
162
162
/// Execute the command and check the assertions
163
163
pub fn execute ( self ) -> Result < ( ) > {
164
- let ref cmd = self . cmd [ 0 ] ;
164
+ let cmd = & self . cmd [ 0 ] ;
165
165
let args: Vec < _ > = self . cmd . iter ( ) . skip ( 1 ) . collect ( ) ;
166
166
let mut command = Command :: new ( cmd) ;
167
167
let command = command. args ( & args) ;
@@ -193,7 +193,7 @@ impl Assert {
193
193
) ) ;
194
194
} ,
195
195
( Some ( ref expected_output) , false ) => {
196
- let differences = Changeset :: new ( expected_output. trim ( ) , & stdout. trim ( ) , "\n " ) ;
196
+ let differences = Changeset :: new ( expected_output. trim ( ) , stdout. trim ( ) , "\n " ) ;
197
197
if differences. distance > 0 {
198
198
let nice_diff = diff:: render ( & differences) ?;
199
199
bail ! ( ErrorKind :: ExactOutputMismatch ( nice_diff) ) ;
Original file line number Diff line number Diff line change
1
+ #![ allow( toplevel_ref_arg, useless_format) ]
2
+
1
3
include ! ( concat!( env!( "OUT_DIR" ) , "/skeptic-tests.rs" ) ) ;
You can’t perform that action at this time.
0 commit comments