refactor: satisfy mismatched_lifetime_syntaxes lint (#8350)

This commit is contained in:
Erich Gubler 2025-10-16 11:30:30 -04:00 committed by GitHub
parent 70e2302ace
commit e2f70c2481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ impl AsBuildContext {
}
}
pub fn blas_build_entry(&self) -> BlasBuildEntry {
pub fn blas_build_entry(&self) -> BlasBuildEntry<'_> {
BlasBuildEntry {
blas: &self.blas,
geometry: BlasGeometries::TriangleGeometries(vec![BlasTriangleGeometry {

View File

@ -71,7 +71,7 @@ impl<T> Mutex<T> {
}
#[track_caller]
pub fn lock(&self) -> MutexGuard<T> {
pub fn lock(&self) -> MutexGuard<'_, T> {
let saved = acquire(self.rank, Location::caller());
MutexGuard {
inner: self.inner.lock(),
@ -146,7 +146,7 @@ impl<T> RwLock<T> {
}
#[track_caller]
pub fn read(&self) -> RwLockReadGuard<T> {
pub fn read(&self) -> RwLockReadGuard<'_, T> {
let saved = acquire(self.rank, Location::caller());
RwLockReadGuard {
inner: self.inner.read(),
@ -155,7 +155,7 @@ impl<T> RwLock<T> {
}
#[track_caller]
pub fn write(&self) -> RwLockWriteGuard<T> {
pub fn write(&self) -> RwLockWriteGuard<'_, T> {
let saved = acquire(self.rank, Location::caller());
RwLockWriteGuard {
inner: self.inner.write(),