Skip to content

Commit

Permalink
fix turmoil builds on non-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Jun 15, 2023
1 parent 3b2e56b commit cd946a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ jobs:
args: --all -- --check

clippy:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
args: ["-D warnings"]
toolchain: ["stable"]
include:
- toolchain: stable
# fail on stable warnings
args: "-D warnings"
# don't fail on any new clippy warnings
- toolchain: beta
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -808,4 +810,3 @@ jobs:
env:
RUST_LOG: trace
run: cargo xtask ci

6 changes: 6 additions & 0 deletions quic/s2n-quic-platform/src/features/gso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ mod gso_disabled {
pub fn max_segments(&self) -> usize {
1
}

#[inline]
#[allow(dead_code)] // this may or may not be used on certain platforms
pub fn disable(&self) {
// it's already disabled
}
}

impl From<MaxSegments> for Gso {
Expand Down

0 comments on commit cd946a7

Please sign in to comment.