mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
chore: satisfy elided_named_lifetimes lint
This commit is contained in:
@@ -189,7 +189,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
|
||||
&'t mut self,
|
||||
block: &'t mut crate::Block,
|
||||
emitter: &'t mut Emitter,
|
||||
) -> ExpressionContext<'a, 't, '_>
|
||||
) -> ExpressionContext<'a, 't, 't>
|
||||
where
|
||||
'temp: 't,
|
||||
{
|
||||
@@ -215,7 +215,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
|
||||
&'t mut self,
|
||||
block: &'t mut crate::Block,
|
||||
emitter: &'t mut Emitter,
|
||||
) -> ExpressionContext<'a, 't, '_>
|
||||
) -> ExpressionContext<'a, 't, 't>
|
||||
where
|
||||
'temp: 't,
|
||||
{
|
||||
|
||||
@@ -928,7 +928,7 @@ impl BindGroup {
|
||||
pub(crate) fn try_raw<'a>(
|
||||
&'a self,
|
||||
guard: &'a SnatchGuard,
|
||||
) -> Result<&dyn hal::DynBindGroup, DestroyedResourceError> {
|
||||
) -> Result<&'a dyn hal::DynBindGroup, DestroyedResourceError> {
|
||||
// Clippy insist on writing it this way. The idea is to return None
|
||||
// if any of the raw buffer is not valid anymore.
|
||||
for buffer in &self.used_buffer_ranges {
|
||||
|
||||
@@ -403,7 +403,7 @@ impl Binder {
|
||||
&self.payloads[bind_range]
|
||||
}
|
||||
|
||||
pub(super) fn list_active<'a>(&'a self) -> impl Iterator<Item = &'a Arc<BindGroup>> + '_ {
|
||||
pub(super) fn list_active<'a>(&'a self) -> impl Iterator<Item = &'a Arc<BindGroup>> + 'a {
|
||||
let payloads = &self.payloads;
|
||||
self.manager
|
||||
.list_active()
|
||||
@@ -411,7 +411,7 @@ impl Binder {
|
||||
}
|
||||
|
||||
#[cfg(feature = "indirect-validation")]
|
||||
pub(super) fn list_valid<'a>(&'a self) -> impl Iterator<Item = (usize, &'a EntryPayload)> + '_ {
|
||||
pub(super) fn list_valid<'a>(&'a self) -> impl Iterator<Item = (usize, &'a EntryPayload)> + 'a {
|
||||
self.payloads
|
||||
.iter()
|
||||
.take(self.manager.num_valid_entries())
|
||||
|
||||
@@ -503,7 +503,7 @@ impl Buffer {
|
||||
pub(crate) fn try_raw<'a>(
|
||||
&'a self,
|
||||
guard: &'a SnatchGuard,
|
||||
) -> Result<&dyn hal::DynBuffer, DestroyedResourceError> {
|
||||
) -> Result<&'a dyn hal::DynBuffer, DestroyedResourceError> {
|
||||
self.raw
|
||||
.get(guard)
|
||||
.map(|raw| raw.as_ref())
|
||||
@@ -2076,7 +2076,7 @@ impl Drop for Tlas {
|
||||
}
|
||||
|
||||
impl AccelerationStructure for Tlas {
|
||||
fn raw<'a>(&'a self, guard: &'a SnatchGuard) -> Option<&dyn hal::DynAccelerationStructure> {
|
||||
fn raw<'a>(&'a self, guard: &'a SnatchGuard) -> Option<&'a dyn hal::DynAccelerationStructure> {
|
||||
Some(self.raw.get(guard)?.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ impl<I: Copy + Ord, T: Copy + PartialEq> RangedStates<I, T> {
|
||||
pub fn iter_filter<'a>(
|
||||
&'a self,
|
||||
range: &'a Range<I>,
|
||||
) -> impl Iterator<Item = (Range<I>, &T)> + 'a {
|
||||
) -> impl Iterator<Item = (Range<I>, &'a T)> + 'a {
|
||||
self.ranges
|
||||
.iter()
|
||||
.filter(move |&(inner, ..)| inner.end > range.start && inner.start < range.end)
|
||||
|
||||
Reference in New Issue
Block a user