@@ -391,14 +391,14 @@ impl UdpSocket {
391391 /// let mdns_addr = Ipv4Addr::new(224, 0, 0, 123);
392392 ///
393393 /// let socket = UdpSocket::bind("127.0.0.1:0").await?;
394- /// socket.join_multicast_v4(& mdns_addr, & interface)?;
394+ /// socket.join_multicast_v4(mdns_addr, interface)?;
395395 /// #
396396 /// # Ok(()) }) }
397397 /// ```
398- pub fn join_multicast_v4 ( & self , multiaddr : & Ipv4Addr , interface : & Ipv4Addr ) -> io:: Result < ( ) > {
398+ pub fn join_multicast_v4 ( & self , multiaddr : Ipv4Addr , interface : Ipv4Addr ) -> io:: Result < ( ) > {
399399 self . watcher
400400 . get_ref ( )
401- . join_multicast_v4 ( multiaddr, interface)
401+ . join_multicast_v4 ( & multiaddr, & interface)
402402 }
403403
404404 /// Executes an operation of the `IPV6_ADD_MEMBERSHIP` type.
@@ -435,10 +435,10 @@ impl UdpSocket {
435435 /// For more information about this option, see [`join_multicast_v4`].
436436 ///
437437 /// [`join_multicast_v4`]: #method.join_multicast_v4
438- pub fn leave_multicast_v4 ( & self , multiaddr : & Ipv4Addr , interface : & Ipv4Addr ) -> io:: Result < ( ) > {
438+ pub fn leave_multicast_v4 ( & self , multiaddr : Ipv4Addr , interface : Ipv4Addr ) -> io:: Result < ( ) > {
439439 self . watcher
440440 . get_ref ( )
441- . leave_multicast_v4 ( multiaddr, interface)
441+ . leave_multicast_v4 ( & multiaddr, & interface)
442442 }
443443
444444 /// Executes an operation of the `IPV6_DROP_MEMBERSHIP` type.
0 commit comments