File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ mod test {
344
344
let ( tx2, rx2) = channel ( ) ;
345
345
346
346
spawn ( move || {
347
- let send_as = |ip, val : & [ u8 ] | {
347
+ let send_as = |& : ip, val : & [ u8 ] | {
348
348
match UdpSocket :: bind ( ip) {
349
349
Ok ( client) => {
350
350
let client = box client;
Original file line number Diff line number Diff line change @@ -321,10 +321,10 @@ pub fn float_to_str_bytes_common<T: Float>(
321
321
// cut off the one extra digit, and depending on its value
322
322
// round the remaining ones.
323
323
if limit_digits && dig == digit_count {
324
- let ascii2value = |chr : u8 | {
324
+ let ascii2value = |& : chr: u8 | {
325
325
( chr as char ) . to_digit ( radix) . unwrap ( )
326
326
} ;
327
- let value2ascii = |val : uint | {
327
+ let value2ascii = |& : val: uint | {
328
328
char:: from_digit ( val, radix) . unwrap ( ) as u8
329
329
} ;
330
330
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ impl Process {
195
195
// up /dev/null into that file descriptor. Otherwise, the first file
196
196
// descriptor opened up in the child would be numbered as one of the
197
197
// stdio file descriptors, which is likely to wreak havoc.
198
- let setup = |src : Option < P > , dst : c_int | {
198
+ let setup = |& : src: Option < P > , dst : c_int | {
199
199
let src = match src {
200
200
None => {
201
201
let flags = if dst == libc:: STDIN_FILENO {
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl Process {
162
162
// Similarly to unix, we don't actually leave holes for the stdio file
163
163
// descriptors, but rather open up /dev/null equivalents. These
164
164
// equivalents are drawn from libuv's windows process spawning.
165
- let set_fd = |fd : & Option < P > , slot : & mut HANDLE ,
165
+ let set_fd = |& : fd: & Option < P > , slot : & mut HANDLE ,
166
166
is_stdin : bool | {
167
167
match * fd {
168
168
None => {
You can’t perform that action at this time.
0 commit comments