Skip to content

Commit 154a8a4

Browse files
authored
Clippy cleanup: endless_loop (#2135)
1 parent b869424 commit 154a8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sys/test_socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ pub fn test_sendmsg_empty_cmsgs() {
13021302
)
13031303
.unwrap();
13041304

1305-
for _ in msg.cmsgs() {
1305+
if msg.cmsgs().next().is_some() {
13061306
panic!("unexpected cmsg");
13071307
}
13081308
assert!(!msg

0 commit comments

Comments
 (0)