Skip to content

Commit

Permalink
[eclipse-iceoryx#508] Fix clippy warnings in windows
Browse files Browse the repository at this point in the history
elfenpiff committed Jan 14, 2025

Verified

This commit was signed with the committer’s verified signature.
farfromrefug farfromrefuge
1 parent fa21f0f commit fffeb3d
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions iceoryx2-pal/posix/tests/win32_select_tests.rs
Original file line number Diff line number Diff line change
@@ -28,9 +28,13 @@ mod win32_select {

let mut socket_fd = vec![];
for i in 0..FD_SET_CAPACITY {
socket_fd.push(
HandleTranslator::get_instance().add(FdHandleEntry::Socket(SocketHandle { fd: i })),
);
socket_fd.push(HandleTranslator::get_instance().add(FdHandleEntry::Socket(
SocketHandle {
fd: i,
recv_timeout: None,
send_timeout: None,
},
)));
}

for fd in socket_fd {
@@ -46,9 +50,13 @@ mod win32_select {

let mut socket_fd = vec![];
for i in 0..FD_SET_CAPACITY {
socket_fd.push(
HandleTranslator::get_instance().add(FdHandleEntry::Socket(SocketHandle { fd: i })),
);
socket_fd.push(HandleTranslator::get_instance().add(FdHandleEntry::Socket(
SocketHandle {
fd: i,
recv_timeout: None,
send_timeout: None,
},
)));
}

for fd in &socket_fd {
@@ -68,9 +76,13 @@ mod win32_select {

let mut socket_fd = vec![];
for i in 0..FD_SET_CAPACITY {
socket_fd.push(
HandleTranslator::get_instance().add(FdHandleEntry::Socket(SocketHandle { fd: i })),
);
socket_fd.push(HandleTranslator::get_instance().add(FdHandleEntry::Socket(
SocketHandle {
fd: i,
recv_timeout: None,
send_timeout: None,
},
)));
}

for fd in &socket_fd {
@@ -90,9 +102,13 @@ mod win32_select {

let mut socket_fd = vec![];
for i in 0..FD_SET_CAPACITY {
socket_fd.push(
HandleTranslator::get_instance().add(FdHandleEntry::Socket(SocketHandle { fd: i })),
);
socket_fd.push(HandleTranslator::get_instance().add(FdHandleEntry::Socket(
SocketHandle {
fd: i,
recv_timeout: None,
send_timeout: None,
},
)));
}

for fd in &socket_fd {

0 comments on commit fffeb3d

Please sign in to comment.