Skip to content

Commit

Permalink
Merge pull request #25 from miller-time/master
Browse files Browse the repository at this point in the history
fix nightly build
  • Loading branch information
Nemo157 authored Aug 12, 2019
2 parents 535e44c + d7bc06d commit 76d4c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ fn star() {
assert_eq!(m.params, params("foo", "bar/foo"));
}

#[cfg(test)]
#[bench]
fn benchmark(b: &mut test::Bencher) {
let mut router = Router::new();
Expand Down
3 changes: 3 additions & 0 deletions src/nfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ fn test_ascii_set() {
assert!(!set.contains('ü'), "The set does not contain ü");
}

#[cfg(test)]
#[bench]
fn bench_char_set(b: &mut test::Bencher) {
let mut set = CharSet::new();
Expand All @@ -579,6 +580,7 @@ fn bench_char_set(b: &mut test::Bencher) {
});
}

#[cfg(test)]
#[bench]
fn bench_hash_set(b: &mut test::Bencher) {
let mut set = HashSet::new();
Expand All @@ -593,6 +595,7 @@ fn bench_hash_set(b: &mut test::Bencher) {
});
}

#[cfg(test)]
#[bench]
fn bench_btree_set(b: &mut test::Bencher) {
let mut set = BTreeSet::new();
Expand Down

0 comments on commit 76d4c85

Please sign in to comment.