File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,13 @@ jobs:
5757 run : cargo fmt --all -- --config format_code_in_doc_comments=true --check
5858
5959 clippy_check :
60+ name : Rust clippy
6061 runs-on : ubuntu-latest
6162 steps :
6263 - uses : actions/checkout@v4
6364 - uses : dtolnay/rust-toolchain@stable
6465 with :
65- toolchain : 1.78 .0
66+ toolchain : 1.84 .0
6667 components : clippy
6768 - name : Rust Cache
6869 uses : Swatinem/rust-cache@v2.2.1
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl ToTargetAddr for (Ipv6Addr, u16) {
9999 }
100100}
101101
102- impl < ' a > ToTargetAddr for ( & ' a str , u16 ) {
102+ impl ToTargetAddr for ( & str , u16 ) {
103103 fn to_target_addr ( & self ) -> io:: Result < TargetAddr > {
104104 // try to parse as an IP first
105105 if let Ok ( addr) = self . 0 . parse :: < Ipv4Addr > ( ) {
@@ -114,7 +114,7 @@ impl<'a> ToTargetAddr for (&'a str, u16) {
114114 }
115115}
116116
117- impl < ' a > ToTargetAddr for & ' a str {
117+ impl ToTargetAddr for & str {
118118 fn to_target_addr ( & self ) -> io:: Result < TargetAddr > {
119119 // try to parse as an IP first
120120 if let Ok ( addr) = self . parse :: < SocketAddrV4 > ( ) {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl Read for Socks4Stream {
148148 }
149149}
150150
151- impl < ' a > Read for & ' a Socks4Stream {
151+ impl Read for & Socks4Stream {
152152 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
153153 ( & self . socket ) . read ( buf)
154154 }
@@ -164,7 +164,7 @@ impl Write for Socks4Stream {
164164 }
165165}
166166
167- impl < ' a > Write for & ' a Socks4Stream {
167+ impl Write for & Socks4Stream {
168168 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
169169 ( & self . socket ) . write ( buf)
170170 }
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ enum Authentication<'a> {
135135 None ,
136136}
137137
138- impl < ' a > Authentication < ' a > {
138+ impl Authentication < ' _ > {
139139 fn id ( & self ) -> u8 {
140140 match * self {
141141 Authentication :: Password { .. } => 2 ,
@@ -329,7 +329,7 @@ impl Read for Socks5Stream {
329329 }
330330}
331331
332- impl < ' a > Read for & ' a Socks5Stream {
332+ impl Read for & Socks5Stream {
333333 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
334334 ( & self . socket ) . read ( buf)
335335 }
@@ -345,7 +345,7 @@ impl Write for Socks5Stream {
345345 }
346346}
347347
348- impl < ' a > Write for & ' a Socks5Stream {
348+ impl Write for & Socks5Stream {
349349 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
350350 ( & self . socket ) . write ( buf)
351351 }
You can’t perform that action at this time.
0 commit comments