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 90d4fe0 commit 7084498
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 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 All @@ -35,6 +35,8 @@ cfg_net! {

pub(crate) mod tcp;
pub(crate) mod udp;

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

cfg_os_ext! {
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 7084498

Please sign in to comment.