Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check all features #330

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
${{ runner.os }}-deps-${{ hashFiles('**/Cargo.toml') }}-
${{ runner.os }}-deps-
- name: Check
run: cargo check --workspace --tests --examples --benches
run: cargo check --workspace --tests --examples --benches --all-features
- name: Build
run: cargo build --workspace --tests --examples --benches
run: cargo build --workspace --tests --examples --benches --all-features
# Always update the cache
- name: Cleanup
run: |
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Format
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy -- -D warnings
run: cargo clippy --tests --examples --benches --all-features -- -D warnings

test:
needs: build
Expand All @@ -122,7 +122,7 @@ jobs:
target/
key: ${{ needs.build.outputs.cache-key }}
- name: Run tests
run: cargo test --verbose
run: cargo test --all-features --verbose

examples:
needs: build
Expand Down
4 changes: 2 additions & 2 deletions libaio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ impl AioBuilder {
waiting: Mutex::new(HashMap::new()),
npending: AtomicUsize::new(0),
#[cfg(feature = "emulated-failure")]
emul_fail: self.emul_fail.as_ref().map(|ef| ef.clone()),
emul_fail: self.emul_fail.as_ref().cloned(),
});
let mut aiomgr = AioManager {
notifier,
Expand Down Expand Up @@ -433,7 +433,7 @@ impl AioManager {
res = e
}
}
n.finish(ev.data as u64, res);
n.finish(ev.data, res);
}
}
}
Expand Down