Skip to content

Commit

Permalink
wrap code to 80 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jul 11, 2018
1 parent fb960c4 commit 9bc15cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sys/socket/mod.rs
Expand Up @@ -410,7 +410,9 @@ impl<'a> Iterator for CmsgIterator<'a> {
}

// Safe if: `self.buf` is `cmsghdr`-aligned.
let cmsg: &'a cmsghdr = unsafe { &*(self.buf[..mem::size_of::<cmsghdr>()].as_ptr() as *const cmsghdr) };
let cmsg: &'a cmsghdr = unsafe {
&*(self.buf[..mem::size_of::<cmsghdr>()].as_ptr() as *const cmsghdr)
};

let cmsg_len = cmsg.cmsg_len as usize;

Expand Down

0 comments on commit 9bc15cc

Please sign in to comment.