Skip to content

Commit

Permalink
Merge pull request #11 from achanda/master
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
shailesh1729 committed May 23, 2015
2 parents f931d7c + bd9f2ad commit 57e4130
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: rust
version:
- nightly
rust: nightly
env:
global:
- secure: KbXw73rCC0fN4invitqpDHyKl8jY4ZBgwsf2p/Rp/EuMH0ViLB2ZBQoY3hbo+nTaTdIh+GaDnskp8ajjd0i5VjmCva5iHQXLild/tyJ692hMp21n2kx6uj8nFznrZc9PoeYsln9Y/3Hd1XEt46JHvm9bOoNFoq5XO+oNYIFlqbo=
Expand Down
4 changes: 2 additions & 2 deletions src/alg/sort/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ mod bench{
use super::*;
#[bench]
fn bench_is_ascending_slice(b: &mut Bencher){
let v = (0..10000).map(|idx| (20000 - idx)).collect::<Vec<i32>>();
let v = (0..10000).collect::<Vec<i32>>();
b.iter(|| {
assert!(is_ascending_slice(v.as_slice()));
});
}
#[bench]
fn bench_is_ascending_buffer(b: &mut Bencher){
let v = (0..10000).map(|idx| (20000 - idx)).collect::<Vec<i32>>();
let v = (0..10000).collect::<Vec<i32>>();
b.iter(|| unsafe {
assert!(is_ascending_buffer(v.as_ptr(), v.len()));
});
Expand Down
2 changes: 1 addition & 1 deletion src/alg/sort/quick_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ mod bench{

#[bench]
fn bench_quick_sort_slice_reverse_data(b: &mut Bencher){
let mut v = (0..10000).map(|idx| (20000 - idx)).collect::<Vec<i32>>();
let mut v = (0..1000).map(|idx| (20000 - idx)).collect::<Vec<i32>>();
b.iter(|| {
quick_sort_slice(v.as_mut_slice());
});
Expand Down

0 comments on commit 57e4130

Please sign in to comment.