diff --git a/.github/workflows/Coverage.yml b/.github/workflows/Coverage.yml index c776729..15589c7 100644 --- a/.github/workflows/Coverage.yml +++ b/.github/workflows/Coverage.yml @@ -18,7 +18,9 @@ jobs: - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4.0.1 with: files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + slug: not-jan/seccomp-stream fail_ci_if_error: true diff --git a/src/lib.rs b/src/lib.rs index 10815d6..08e86b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -412,7 +412,7 @@ impl Stream for NotificationStream { /// # Returns /// /// A `Poll` indicating the state of the next notification. - fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { match self.inner.poll_read_ready(cx) { Poll::Ready(Ok(mut guard)) => { if guard.ready().is_read_closed() { @@ -684,7 +684,7 @@ mod tests { let fd = fd_rx.await.expect("Did not receive FD!"); - let mut stream = + let stream = NotificationStream::new(fd).expect("Failed to construct NotificationStream"); let notification = tokio::time::timeout(Duration::from_secs(5), stream.recv())