remove all kind annotations from closures

This commit is contained in:
Jorge Aparicio
2015-02-01 12:44:15 -05:00
parent ba2f13ef06
commit 571cc7f8e9
196 changed files with 396 additions and 390 deletions

View File

@@ -151,8 +151,8 @@ impl UnixStream {
pub fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
let fd = self.fd();
let dolock = |&:| self.lock_nonblocking();
let doread = |&mut: nb| unsafe {
let dolock = || self.lock_nonblocking();
let doread = |nb| unsafe {
let flags = if nb {c::MSG_DONTWAIT} else {0};
libc::recv(fd,
buf.as_mut_ptr() as *mut libc::c_void,
@@ -164,8 +164,8 @@ impl UnixStream {
pub fn write(&mut self, buf: &[u8]) -> IoResult<()> {
let fd = self.fd();
let dolock = |&: | self.lock_nonblocking();
let dowrite = |&: nb: bool, buf: *const u8, len: uint| unsafe {
let dolock = || self.lock_nonblocking();
let dowrite = |nb: bool, buf: *const u8, len: uint| unsafe {
let flags = if nb {c::MSG_DONTWAIT} else {0};
libc::send(fd,
buf as *const _,