소스 검색

Fix rustfmt - will squash.

Bryan Benson 3 년 전
부모
커밋
8f5e400a86
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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).
     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(())
     }