Browse Source

Fix rustfmt - will squash.

Bryan Benson 3 years ago
parent
commit
8f5e400a86
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/socket/udp.rs

+ 2 - 1
src/socket/udp.rs

@@ -230,7 +230,8 @@ impl<'a> UdpSocket<'a> {
     ///
     ///
     /// See also [send](#method.send).
     /// See also [send](#method.send).
     pub fn send_slice(&mut self, data: &[u8], remote_endpoint: IpEndpoint) -> Result<()> {
     pub fn send_slice(&mut self, data: &[u8], remote_endpoint: IpEndpoint) -> Result<()> {
-        self.send(data.len(), remote_endpoint)?.copy_from_slice(data);
+        self.send(data.len(), remote_endpoint)?
+            .copy_from_slice(data);
         Ok(())
         Ok(())
     }
     }