Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Mar 1, 2024
1 parent 4a0ebd5 commit d9c2478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sys/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod overlapped;
use overlapped::Overlapped;

mod selector;
pub use selector::{Selector, SelectorInner, SockState};
pub use selector::Selector;

// Macros must be defined before the modules that use them
cfg_net! {
Expand Down
4 changes: 2 additions & 2 deletions tests/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ fn poll_registration() {
let interests = Interest::READABLE;
registry.register(&mut source, token, interests).unwrap();
assert_eq!(source.registrations.len(), 1);
assert_eq!(source.registrations.get(0), Some(&(token, interests)));
assert_eq!(source.registrations.first(), Some(&(token, interests)));
assert!(source.reregistrations.is_empty());
assert_eq!(source.deregister_count, 0);

Expand All @@ -593,7 +593,7 @@ fn poll_registration() {
assert_eq!(source.registrations.len(), 1);
assert_eq!(source.reregistrations.len(), 1);
assert_eq!(
source.reregistrations.get(0),
source.reregistrations.first(),
Some(&(re_token, re_interests))
);
assert_eq!(source.deregister_count, 0);
Expand Down

0 comments on commit d9c2478

Please sign in to comment.