@@ -318,129 +318,129 @@ impl UdpSocket {
318318 }
319319
320320 pub fn peer_addr ( & self ) -> io:: Result < SocketAddr > {
321- match self . 0 { }
321+ self . 0
322322 }
323323
324324 pub fn socket_addr ( & self ) -> io:: Result < SocketAddr > {
325- match self . 0 { }
325+ self . 0
326326 }
327327
328328 pub fn recv_from ( & self , _: & mut [ u8 ] ) -> io:: Result < ( usize , SocketAddr ) > {
329- match self . 0 { }
329+ self . 0
330330 }
331331
332332 pub fn peek_from ( & self , _: & mut [ u8 ] ) -> io:: Result < ( usize , SocketAddr ) > {
333- match self . 0 { }
333+ self . 0
334334 }
335335
336336 pub fn send_to ( & self , _: & [ u8 ] , _: & SocketAddr ) -> io:: Result < usize > {
337- match self . 0 { }
337+ self . 0
338338 }
339339
340340 pub fn duplicate ( & self ) -> io:: Result < UdpSocket > {
341- match self . 0 { }
341+ self . 0
342342 }
343343
344344 pub fn set_read_timeout ( & self , _: Option < Duration > ) -> io:: Result < ( ) > {
345- match self . 0 { }
345+ self . 0
346346 }
347347
348348 pub fn set_write_timeout ( & self , _: Option < Duration > ) -> io:: Result < ( ) > {
349- match self . 0 { }
349+ self . 0
350350 }
351351
352352 pub fn read_timeout ( & self ) -> io:: Result < Option < Duration > > {
353- match self . 0 { }
353+ self . 0
354354 }
355355
356356 pub fn write_timeout ( & self ) -> io:: Result < Option < Duration > > {
357- match self . 0 { }
357+ self . 0
358358 }
359359
360360 pub fn set_broadcast ( & self , _: bool ) -> io:: Result < ( ) > {
361- match self . 0 { }
361+ self . 0
362362 }
363363
364364 pub fn broadcast ( & self ) -> io:: Result < bool > {
365- match self . 0 { }
365+ self . 0
366366 }
367367
368368 pub fn set_multicast_loop_v4 ( & self , _: bool ) -> io:: Result < ( ) > {
369- match self . 0 { }
369+ self . 0
370370 }
371371
372372 pub fn multicast_loop_v4 ( & self ) -> io:: Result < bool > {
373- match self . 0 { }
373+ self . 0
374374 }
375375
376376 pub fn set_multicast_ttl_v4 ( & self , _: u32 ) -> io:: Result < ( ) > {
377- match self . 0 { }
377+ self . 0
378378 }
379379
380380 pub fn multicast_ttl_v4 ( & self ) -> io:: Result < u32 > {
381- match self . 0 { }
381+ self . 0
382382 }
383383
384384 pub fn set_multicast_loop_v6 ( & self , _: bool ) -> io:: Result < ( ) > {
385- match self . 0 { }
385+ self . 0
386386 }
387387
388388 pub fn multicast_loop_v6 ( & self ) -> io:: Result < bool > {
389- match self . 0 { }
389+ self . 0
390390 }
391391
392392 pub fn join_multicast_v4 ( & self , _: & Ipv4Addr , _: & Ipv4Addr ) -> io:: Result < ( ) > {
393- match self . 0 { }
393+ self . 0
394394 }
395395
396396 pub fn join_multicast_v6 ( & self , _: & Ipv6Addr , _: u32 ) -> io:: Result < ( ) > {
397- match self . 0 { }
397+ self . 0
398398 }
399399
400400 pub fn leave_multicast_v4 ( & self , _: & Ipv4Addr , _: & Ipv4Addr ) -> io:: Result < ( ) > {
401- match self . 0 { }
401+ self . 0
402402 }
403403
404404 pub fn leave_multicast_v6 ( & self , _: & Ipv6Addr , _: u32 ) -> io:: Result < ( ) > {
405- match self . 0 { }
405+ self . 0
406406 }
407407
408408 pub fn set_ttl ( & self , _: u32 ) -> io:: Result < ( ) > {
409- match self . 0 { }
409+ self . 0
410410 }
411411
412412 pub fn ttl ( & self ) -> io:: Result < u32 > {
413- match self . 0 { }
413+ self . 0
414414 }
415415
416416 pub fn take_error ( & self ) -> io:: Result < Option < io:: Error > > {
417- match self . 0 { }
417+ self . 0
418418 }
419419
420420 pub fn set_nonblocking ( & self , _: bool ) -> io:: Result < ( ) > {
421- match self . 0 { }
421+ self . 0
422422 }
423423
424424 pub fn recv ( & self , _: & mut [ u8 ] ) -> io:: Result < usize > {
425- match self . 0 { }
425+ self . 0
426426 }
427427
428428 pub fn peek ( & self , _: & mut [ u8 ] ) -> io:: Result < usize > {
429- match self . 0 { }
429+ self . 0
430430 }
431431
432432 pub fn send ( & self , _: & [ u8 ] ) -> io:: Result < usize > {
433- match self . 0 { }
433+ self . 0
434434 }
435435
436436 pub fn connect ( & self , _: io:: Result < & SocketAddr > ) -> io:: Result < ( ) > {
437- match self . 0 { }
437+ self . 0
438438 }
439439}
440440
441441impl fmt:: Debug for UdpSocket {
442442 fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
443- match self . 0 { }
443+ self . 0
444444 }
445445}
446446
@@ -470,14 +470,14 @@ impl LookupHost {
470470 }
471471
472472 pub fn port ( & self ) -> u16 {
473- match self . 0 { }
473+ self . 0
474474 }
475475}
476476
477477impl Iterator for LookupHost {
478478 type Item = SocketAddr ;
479479 fn next ( & mut self ) -> Option < SocketAddr > {
480- match self . 0 { }
480+ self . 0
481481 }
482482}
483483
0 commit comments