Skip to content

Commit

Permalink
fix: imports on windows signals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kelley committed Aug 30, 2022
1 parent c5effa2 commit 93677bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tokio/src/signal/windows/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ impl Init for OsStorage {
impl Storage for OsStorage {
fn event_info(&self, id: EventId) -> Option<&EventInfo> {
match DWORD::try_from(id) {
Ok(CTRL_BREAK_EVENT) => Some(&self.ctrl_break),
Ok(CTRL_CLOSE_EVENT) => Some(&self.ctrl_close),
Ok(CTRL_C_EVENT) => Some(&self.ctrl_c),
Ok(CTRL_LOGOFF_EVENT) => Some(&self.ctrl_logoff),
Ok(CTRL_SHUTDOWN_EVENT) => Some(&self.ctrl_shutdown),
Ok(wincon::CTRL_BREAK_EVENT) => Some(&self.ctrl_break),
Ok(wincon::CTRL_CLOSE_EVENT) => Some(&self.ctrl_close),
Ok(wincon::CTRL_C_EVENT) => Some(&self.ctrl_c),
Ok(wincon::CTRL_LOGOFF_EVENT) => Some(&self.ctrl_logoff),
Ok(wincon::CTRL_SHUTDOWN_EVENT) => Some(&self.ctrl_shutdown),
_ => None,
}
}
Expand Down

0 comments on commit 93677bd

Please sign in to comment.