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 = " udp"
3- version = "2.0.0 "
3+ version = " 2.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 @@ -40,7 +40,7 @@ impl Context {
4040 /// # Returns
4141 ///
4242 /// - `RwLockReadContext` - Read guard for the inner context.
43- pub async fn get_read_lock(&self) -> RwLockReadContext {
43+ pub async fn get_read_lock(&'_ self) -> RwLockReadContext<'_> {
4444 self.0.read().await
4545 }
4646
@@ -49,7 +49,7 @@ impl Context {
4949 /// # Returns
5050 ///
5151 /// - `RwLockWriteContext` - Write guard for the inner context.
52- pub async fn get_write_lock(&self) -> RwLockWriteContext {
52+ pub async fn get_write_lock(&'_ self) -> RwLockWriteContext<'_> {
5353 self.0.write().await
5454 }
5555
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl ArcRwLockUdpSocket {
3535 /// # Returns
3636 ///
3737 /// - `RwLockReadGuardUdpSocket` - Read guard for the socket.
38- pub async fn get_read_lock(&self) -> RwLockReadGuardUdpSocket {
38+ pub async fn get_read_lock(&'_ self) -> RwLockReadGuardUdpSocket<'_> {
3939 self.0.read().await
4040 }
4141
@@ -44,7 +44,7 @@ impl ArcRwLockUdpSocket {
4444 /// # Returns
4545 ///
4646 /// - `RwLockWriteGuardUdpSocket` - Write guard for the socket.
47- pub async fn get_write_lock(&self) -> RwLockWriteGuardUdpSocket {
47+ pub async fn get_write_lock(&'_ self) -> RwLockWriteGuardUdpSocket<'_> {
4848 self.0.write().await
4949 }
5050}
You can’t perform that action at this time.
0 commit comments