for x in xs.iter()
-> for x in &xs
This commit is contained in:
parent
9f90d666e0
commit
d5d7e6565a
269 changed files with 1063 additions and 1064 deletions
|
@ -554,7 +554,7 @@ pub fn await(fds: &[sock_t], deadline: Option<u64>,
|
|||
status: SocketStatus) -> IoResult<()> {
|
||||
let mut set: c::fd_set = unsafe { mem::zeroed() };
|
||||
let mut max = 0;
|
||||
for &fd in fds.iter() {
|
||||
for &fd in fds {
|
||||
c::fd_set(&mut set, fd);
|
||||
max = cmp::max(max, fd + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue