diff --git a/src/notify/error.rs b/src/notify/error.rs index d1c384a..c593e47 100644 --- a/src/notify/error.rs +++ b/src/notify/error.rs @@ -127,7 +127,7 @@ pub enum BarrierError { Notify(NotifyError), FailedPipeCreation(Errno), FailedPolling(Errno), - Timedout, + TimedOut, } impl From for BarrierError { @@ -145,7 +145,7 @@ impl Display for BarrierError { "Couldn't create pipe to serve as a notify syncronisation barrier : error {errno}." ), Self::FailedPolling(errno) => write!(f, "poll failed with error : {errno}."), - Self::Timedout => write!(f, "Notification synchronisation timed out."), + Self::TimedOut => write!(f, "Notification synchronisation timed out."), } } } @@ -156,7 +156,7 @@ impl Error for BarrierError { Self::Notify(source) => Some(source), Self::FailedPipeCreation(source) => Some(source), Self::FailedPolling(source) => Some(source), - Self::Timedout => None, + Self::TimedOut => None, } } } diff --git a/src/notify/mod.rs b/src/notify/mod.rs index 0b4e489..2569150 100644 --- a/src/notify/mod.rs +++ b/src/notify/mod.rs @@ -186,7 +186,7 @@ impl Notifier { .map_err(BarrierError::FailedPolling) .and_then(|events| { if events == 0_usize { - return Err(BarrierError::Timedout); + return Err(BarrierError::TimedOut); } Ok(()) })