Fix clippy
[rust-lightning] / lightning / src / ln / peer_handler.rs
index 2902ece769405ffa14e83ed62cfa4e38e784e7c8..6e997e53b156770d237bfbe615eff0096b77c17a 100644 (file)
@@ -1,3 +1,12 @@
+// This file is Copyright its original authors, visible in version control
+// history.
+//
+// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
+// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
+// You may not use this file except in accordance with one or both of these
+// licenses.
+
 //! Top level peer message handling and socket handling logic lives here.
 //!
 //! Instead of actually servicing sockets ourselves we require that you implement the
@@ -314,7 +323,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref> PeerManager<D
                        pending_outbound_buffer_first_msg_offset: 0,
                        awaiting_write_event: false,
 
-                       pending_read_buffer: pending_read_buffer,
+                       pending_read_buffer,
                        pending_read_buffer_pos: 0,
                        pending_read_is_header: false,
 
@@ -351,7 +360,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref> PeerManager<D
                        pending_outbound_buffer_first_msg_offset: 0,
                        awaiting_write_event: false,
 
-                       pending_read_buffer: pending_read_buffer,
+                       pending_read_buffer,
                        pending_read_buffer_pos: 0,
                        pending_read_is_header: false,