Skip to content

Commit 0ba0058

Browse files
jdidionclaude
andcommitted
Fix clippy lint: add explicit lifetime on MutexGuard return type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b6bdf7c commit 0ba0058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hive/inner/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<W: Worker, Q: Queen<Kind = W>, T: TaskQueues<Q::Kind>> Shared<Q, T> {
143143
}
144144

145145
/// Returns the mutex guard for the results of spawing worker threads.
146-
pub fn spawn_results(&self) -> MutexGuard<Vec<Result<JoinHandle<()>, SpawnError>>> {
146+
pub fn spawn_results(&self) -> MutexGuard<'_, Vec<Result<JoinHandle<()>, SpawnError>>> {
147147
self.spawn_results.lock()
148148
}
149149

0 commit comments

Comments
 (0)