Skip to content

Commit 0540b3f

Browse files
authored
build: fix clippy errors (#107)
Signed-off-by: gruebel <anton.gruebel@gmail.com>
1 parent c9699e9 commit 0540b3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/global_evaluation_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ impl GlobalEvaluationContext {
1212
Self(Arc::new(RwLock::new(evaluation_context)))
1313
}
1414

15-
pub async fn get(&self) -> RwLockReadGuard<EvaluationContext> {
15+
pub async fn get(&self) -> RwLockReadGuard<'_, EvaluationContext> {
1616
self.0.read().await
1717
}
1818

19-
pub async fn get_mut(&self) -> RwLockWriteGuard<EvaluationContext> {
19+
pub async fn get_mut(&self) -> RwLockWriteGuard<'_, EvaluationContext> {
2020
self.0.write().await
2121
}
2222
}

src/api/global_hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use crate::HookWrapper;
88
pub struct GlobalHooks(Arc<RwLock<Vec<HookWrapper>>>);
99

1010
impl GlobalHooks {
11-
pub async fn get(&self) -> RwLockReadGuard<Vec<HookWrapper>> {
11+
pub async fn get(&self) -> RwLockReadGuard<'_, Vec<HookWrapper>> {
1212
self.0.read().await
1313
}
1414

15-
pub async fn get_mut(&self) -> RwLockWriteGuard<Vec<HookWrapper>> {
15+
pub async fn get_mut(&self) -> RwLockWriteGuard<'_, Vec<HookWrapper>> {
1616
self.0.write().await
1717
}
1818
}

0 commit comments

Comments
 (0)