Skip to content

Commit 76e501a

Browse files
style(hydroflow): Never -> std::convert::Infallible (#1093)
1 parent 7958fb0 commit 76e501a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hydroflow/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ pub use hydroflow_macro::{
4747
};
4848

4949
#[cfg(not(nightly))]
50-
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
5150
/// Stand-in for the [nightly "never" type `!`](https://doc.rust-lang.org/std/primitive.never.html)
52-
pub enum Never {}
51+
pub type Never = std::convert::Infallible;
5352
#[cfg(nightly)]
5453
pub type Never = !;
5554

hydroflow/src/scheduled/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl<'a> Hydroflow<'a> {
343343

344344
/// Runs the dataflow graph forever.
345345
///
346-
/// TODO(mingwei): Currently blockes forever, no notion of "completion."
346+
/// TODO(mingwei): Currently blocks forever, no notion of "completion."
347347
#[tracing::instrument(level = "trace", skip(self), ret)]
348348
pub fn run(&mut self) -> Option<Never> {
349349
loop {
@@ -353,7 +353,7 @@ impl<'a> Hydroflow<'a> {
353353

354354
/// Runs the dataflow graph forever.
355355
///
356-
/// TODO(mingwei): Currently blockes forever, no notion of "completion."
356+
/// TODO(mingwei): Currently blocks forever, no notion of "completion."
357357
#[tracing::instrument(level = "trace", skip(self), ret)]
358358
pub async fn run_async(&mut self) -> Option<Never> {
359359
self.context.spawn_tasks();

0 commit comments

Comments
 (0)