Skip to content

Commit d6e7184

Browse files
committed
feat: v2.0.1
1 parent ca3ce41 commit d6e7184

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "udp"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["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]
2525
incremental = false

src/context/impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/socket/impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)