Skip to content

Commit 7aa83f6

Browse files
stepanchegcramertj
authored andcommitted
Fix clippy errors after mpsc refactoring
1 parent 1a97540 commit 7aa83f6

File tree

1 file changed

+2
-2
lines changed
  • futures-channel/src/mpsc

1 file changed

+2
-2
lines changed

futures-channel/src/mpsc/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,11 @@ impl<T> Receiver<T> {
830830
// but didn't put message to queue yet,
831831
// so we need to park until sender unparks the task
832832
// after queueing the message.
833-
return Poll::Pending;
833+
Poll::Pending
834834
} else {
835835
// If closed flag is set AND there are no pending messages
836836
// it means end of stream
837-
return Poll::Ready(None);
837+
Poll::Ready(None)
838838
}
839839
}
840840
}

0 commit comments

Comments
 (0)