Skip to content

Commit feeb396

Browse files
committed
MAINT: Test with no-default-features (so no_std) in travis too
1 parent 6bd5ace commit feeb396

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ branches:
1616
# the main build
1717
script:
1818
- |
19+
cargo build -v --no-default-features &&
20+
cargo test -v --no-default-features &&
1921
cargo build -v --features=$FEATURES &&
2022
cargo test -v --features=$FEATURES &&
2123
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then

src/algorithms.rs

+1
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ pub fn merge_internal_ranges<T: Ord>(data: &mut [T], left_end: usize, buffer: &m
468468
Ok(())
469469
}
470470

471+
#[cfg(feature="use_std")]
471472
#[test]
472473
fn test_merge_internal() {
473474
let mut buffer = [0; 128];

src/container.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ fn intervals() {
660660
for elt in &mut arr[r] {
661661
*elt += 1;
662662
}
663-
println!("{:?}", &mut arr[r]);
663+
// println!("{:?}", &mut arr[r]);
664664
});
665665
}
666666

tests/vec.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature="use_std")]
12

23
extern crate indexing;
34

0 commit comments

Comments
 (0)