Skip to content

Commit 7db603b

Browse files
committed
feat: v5.0.1
1 parent d6837ca commit 7db603b

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 = "tcplane"
3-
version = "5.0.0"
3+
version = "5.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
@@ -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

src/stream/impl.rs

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

0 commit comments

Comments
 (0)