File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " tcplane"
3- version = " 5.0.0 "
3+ version = " 5.0.1 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
@@ -19,7 +19,7 @@ exclude = [
1919]
2020
2121[dependencies ]
22- tokio = { version = " 1.47.1 " , features = [" full" ] }
22+ tokio = { version = " 1.48.0 " , features = [" full" ] }
2323
2424[profile .dev ]
2525incremental = false
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ impl Context {
4141 /// # Returns
4242 ///
4343 /// - `RwLockReadContext` - A read guard for the inner context.
44- pub async fn get_read_lock ( & self ) -> RwLockReadContext {
44+ pub async fn get_read_lock ( & ' _ self ) -> RwLockReadContext < ' _ > {
4545 self . 0 . read ( ) . await
4646 }
4747
@@ -54,7 +54,7 @@ impl Context {
5454 /// # Returns
5555 ///
5656 /// - `RwLockWriteContext` - A write guard for the inner context.
57- pub async fn get_write_lock ( & self ) -> RwLockWriteContext {
57+ pub async fn get_write_lock ( & ' _ self ) -> RwLockWriteContext < ' _ > {
5858 self . 0 . write ( ) . await
5959 }
6060
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ impl ArcRwLockStream {
99 Self ( Arc :: new ( RwLock :: new ( stream) ) )
1010 }
1111
12- pub async fn get_read_lock ( & self ) -> RwLockReadGuardTcpStream {
12+ pub async fn get_read_lock ( & ' _ self ) -> RwLockReadGuardTcpStream < ' _ > {
1313 self . 0 . read ( ) . await
1414 }
1515
16- pub async fn get_write_lock ( & self ) -> RwLockWriteGuardTcpStream {
16+ pub async fn get_write_lock ( & ' _ self ) -> RwLockWriteGuardTcpStream < ' _ > {
1717 self . 0 . write ( ) . await
1818 }
1919}
You can’t perform that action at this time.
0 commit comments