chore: clippy elided lifetimes

This commit is contained in:
skoupidi
2024-09-17 16:56:38 +03:00
parent 19eb32f29b
commit 82520041eb
9 changed files with 10 additions and 10 deletions

View File

@@ -89,7 +89,7 @@ impl RequestHandler for Darkfid {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -55,7 +55,7 @@ impl RequestHandler for DarkIrc {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -68,7 +68,7 @@ impl RequestHandler for JsonRpcInterface {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -250,7 +250,7 @@ impl RequestHandler for Lilith {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -54,7 +54,7 @@ impl RequestHandler for Minerd {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -99,7 +99,7 @@ impl RequestHandler for JsonRpcInterface {
to_json_result(rep, req.id)
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -49,7 +49,7 @@ impl RequestHandler for Dchat {
// ANCHOR_END: req_match
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -46,7 +46,7 @@ pub trait RequestHandler: Sync + Send {
JsonResponse::new(JsonValue::String("pong".to_string()), id).into()
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>>;
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>>;
async fn connections(&self) -> Vec<StoppableTaskPtr> {
self.connections_mut().await.iter().cloned().collect()
@@ -405,7 +405,7 @@ mod tests {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}

View File

@@ -66,7 +66,7 @@ impl RequestHandler for RpcSrv {
}
}
async fn connections_mut(&self) -> MutexGuard<'_, HashSet<StoppableTaskPtr>> {
async fn connections_mut(&self) -> MutexGuard<'life0, HashSet<StoppableTaskPtr>> {
self.rpc_connections.lock().await
}
}