File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
2
sudo : false
3
3
4
+ rust :
5
+ - 1.0.0
6
+ - stable
7
+ - beta
8
+ - nightly
9
+
4
10
script :
5
11
- cargo build
6
12
- cargo test
13
+ - if [ "$TRAVIS_RUST_VERSION" != "1.0.0" ]; then cargo test --no-default-features; fi
7
14
- cargo bench --no-run
8
15
- cargo doc
9
16
Original file line number Diff line number Diff line change 11
11
//! extra functionality to `Result<T, Void>` and `Result<Void, E>`.
12
12
//!
13
13
14
- #[ cfg( feature = "std" ) ]
15
- extern crate core;
16
- use core:: { fmt, cmp} ;
14
+ #[ cfg( not( feature = "std" ) ) ]
15
+ mod coreprovider {
16
+ extern crate core;
17
+ pub use core:: { fmt, cmp} ;
18
+ }
17
19
18
20
#[ cfg( feature = "std" ) ]
19
- use std:: error;
21
+ mod coreprovider {
22
+ pub use std:: { fmt, cmp, error} ;
23
+ }
24
+
25
+ use coreprovider:: * ;
20
26
21
27
/// The empty type for cases which can't occur.
22
28
#[ derive( Copy ) ]
You can’t perform that action at this time.
0 commit comments