File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2575,9 +2575,7 @@ impl<'a> Socket<'a> {
2575
2575
. unwrap_or ( & PollAt :: Ingress )
2576
2576
}
2577
2577
}
2578
- }
2579
2578
2580
- impl Socket < ' static > {
2581
2579
/// Replace the receive buffer with a new one.
2582
2580
///
2583
2581
/// The requirements for the new buffer are:
@@ -2593,10 +2591,10 @@ impl Socket<'static> {
2593
2591
///
2594
2592
/// See also the [new_with_window_scaling](struct.Socket.html#method.new_with_window_scaling) and
2595
2593
/// [local_recv_win_scale](struct.Socket.html#method.local_recv_win_scale) methods.
2596
- pub fn replace_recv_buffer < T : Into < SocketBuffer < ' static > > > (
2594
+ pub fn replace_recv_buffer < T : Into < SocketBuffer < ' a > > > (
2597
2595
& mut self ,
2598
2596
new_buffer : T ,
2599
- ) -> Result < SocketBuffer < ' static > , SocketBuffer < ' static > > {
2597
+ ) -> Result < SocketBuffer < ' a > , SocketBuffer < ' a > > {
2600
2598
let mut replaced_buf = new_buffer. into ( ) ;
2601
2599
/* Check if the new buffer is valid
2602
2600
* Requirements:
You can’t perform that action at this time.
0 commit comments