Skip to content

Commit

Permalink
Merge pull request #989 from smoltcp-rs/fix-benches
Browse files Browse the repository at this point in the history
Fix bench, check benches in CI.
  • Loading branch information
thvdveld authored Sep 16, 2024
2 parents 649bce4 + 00aa2b4 commit 749d8c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ mod wire {
sack_permitted: false,
sack_ranges: [None, None, None],
payload: &PAYLOAD_BYTES,
timestamp: None,
};
let mut bytes = vec![0xa5; repr.buffer_len()];

Expand Down
6 changes: 6 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ check() {
for features in ${FEATURES_CHECK[@]}; do
cargo +$version check --no-default-features --features "$features"
done

cargo +$version check --examples

if [[ $version == "nightly" ]]; then
cargo +$version check --benches
fi
}

clippy() {
Expand Down

0 comments on commit 749d8c7

Please sign in to comment.