diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2388117db..5bb909de9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: | @@ -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 @@ -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 diff --git a/libaio/src/lib.rs b/libaio/src/lib.rs index c3332e860..24776c531 100644 --- a/libaio/src/lib.rs +++ b/libaio/src/lib.rs @@ -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, @@ -433,7 +433,7 @@ impl AioManager { res = e } } - n.finish(ev.data as u64, res); + n.finish(ev.data, res); } } }