Skip to content

Commit

Permalink
Update codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
not-jan committed Apr 5, 2024
1 parent da2e750 commit 78db83e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/Coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<Self::Item>> {
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
match self.inner.poll_read_ready(cx) {
Poll::Ready(Ok(mut guard)) => {
if guard.ready().is_read_closed() {
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 78db83e

Please sign in to comment.