Browse Source

Merge pull request #989 from smoltcp-rs/fix-benches

Fix bench, check benches in CI.
Thibaut Vandervelden 6 months ago
parent
commit
749d8c7711
2 changed files with 7 additions and 0 deletions
  1. 1 0
      benches/bench.rs
  2. 6 0
      ci.sh

+ 1 - 0
benches/bench.rs

@@ -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()];
 

+ 6 - 0
ci.sh

@@ -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() {