Skip to content

Commit

Permalink
MAINT: Test with no-default-features (so no_std) in travis too
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Nov 25, 2018
1 parent 6bd5ace commit feeb396
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ branches:
# the main build
script:
- |
cargo build -v --no-default-features &&
cargo test -v --no-default-features &&
cargo build -v --features=$FEATURES &&
cargo test -v --features=$FEATURES &&
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
Expand Down
1 change: 1 addition & 0 deletions src/algorithms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ pub fn merge_internal_ranges<T: Ord>(data: &mut [T], left_end: usize, buffer: &m
Ok(())
}

#[cfg(feature="use_std")]
#[test]
fn test_merge_internal() {
let mut buffer = [0; 128];
Expand Down
2 changes: 1 addition & 1 deletion src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ fn intervals() {
for elt in &mut arr[r] {
*elt += 1;
}
println!("{:?}", &mut arr[r]);
// println!("{:?}", &mut arr[r]);
});
}

Expand Down
1 change: 1 addition & 0 deletions tests/vec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature="use_std")]

extern crate indexing;

Expand Down

0 comments on commit feeb396

Please sign in to comment.