Skip to content

Commit

Permalink
Fix minor snafu
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Jan 13, 2024
1 parent 6202d4c commit aedcf45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"rust-analyzer.showUnlinkedFileNotification": false,
"rust-analyzer.cargo.target": "x86_64-pc-windows-gnu"
"rust-analyzer.showUnlinkedFileNotification": false
}
2 changes: 1 addition & 1 deletion src/sources/ping/iocp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl EventSource for PingSource {
let mut counter = self.state.counter.lock().unwrap_or_else(|e| e.into_inner());

// Make sure we haven't already been registered.
if counter.poll_state.is_none() {
if counter.poll_state.is_some() {
return Err(io::Error::from(io::ErrorKind::AlreadyExists).into());
}

Expand Down

0 comments on commit aedcf45

Please sign in to comment.