Skip to content

Commit 96c855b

Browse files
chore: satisfy elided_named_lifetimes lint
1 parent 9a43938 commit 96c855b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

naga/src/front/wgsl/lower/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
189189
&'t mut self,
190190
block: &'t mut crate::Block,
191191
emitter: &'t mut Emitter,
192-
) -> ExpressionContext<'a, 't, '_>
192+
) -> ExpressionContext<'a, 't, 't>
193193
where
194194
'temp: 't,
195195
{
@@ -215,7 +215,7 @@ impl<'a, 'temp> StatementContext<'a, 'temp, '_> {
215215
&'t mut self,
216216
block: &'t mut crate::Block,
217217
emitter: &'t mut Emitter,
218-
) -> ExpressionContext<'a, 't, '_>
218+
) -> ExpressionContext<'a, 't, 't>
219219
where
220220
'temp: 't,
221221
{

wgpu-core/src/binding_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ impl BindGroup {
928928
pub(crate) fn try_raw<'a>(
929929
&'a self,
930930
guard: &'a SnatchGuard,
931-
) -> Result<&dyn hal::DynBindGroup, DestroyedResourceError> {
931+
) -> Result<&'a dyn hal::DynBindGroup, DestroyedResourceError> {
932932
// Clippy insist on writing it this way. The idea is to return None
933933
// if any of the raw buffer is not valid anymore.
934934
for buffer in &self.used_buffer_ranges {

wgpu-core/src/command/bind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,15 @@ impl Binder {
403403
&self.payloads[bind_range]
404404
}
405405

406-
pub(super) fn list_active<'a>(&'a self) -> impl Iterator<Item = &'a Arc<BindGroup>> + '_ {
406+
pub(super) fn list_active<'a>(&'a self) -> impl Iterator<Item = &'a Arc<BindGroup>> + 'a {
407407
let payloads = &self.payloads;
408408
self.manager
409409
.list_active()
410410
.map(move |index| payloads[index].group.as_ref().unwrap())
411411
}
412412

413413
#[cfg(feature = "indirect-validation")]
414-
pub(super) fn list_valid<'a>(&'a self) -> impl Iterator<Item = (usize, &'a EntryPayload)> + '_ {
414+
pub(super) fn list_valid<'a>(&'a self) -> impl Iterator<Item = (usize, &'a EntryPayload)> + 'a {
415415
self.payloads
416416
.iter()
417417
.take(self.manager.num_valid_entries())

wgpu-core/src/resource.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ impl Buffer {
503503
pub(crate) fn try_raw<'a>(
504504
&'a self,
505505
guard: &'a SnatchGuard,
506-
) -> Result<&dyn hal::DynBuffer, DestroyedResourceError> {
506+
) -> Result<&'a dyn hal::DynBuffer, DestroyedResourceError> {
507507
self.raw
508508
.get(guard)
509509
.map(|raw| raw.as_ref())
@@ -2076,7 +2076,7 @@ impl Drop for Tlas {
20762076
}
20772077

20782078
impl AccelerationStructure for Tlas {
2079-
fn raw<'a>(&'a self, guard: &'a SnatchGuard) -> Option<&dyn hal::DynAccelerationStructure> {
2079+
fn raw<'a>(&'a self, guard: &'a SnatchGuard) -> Option<&'a dyn hal::DynAccelerationStructure> {
20802080
Some(self.raw.get(guard)?.as_ref())
20812081
}
20822082
}

wgpu-core/src/track/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<I: Copy + Ord, T: Copy + PartialEq> RangedStates<I, T> {
7474
pub fn iter_filter<'a>(
7575
&'a self,
7676
range: &'a Range<I>,
77-
) -> impl Iterator<Item = (Range<I>, &T)> + 'a {
77+
) -> impl Iterator<Item = (Range<I>, &'a T)> + 'a {
7878
self.ranges
7979
.iter()
8080
.filter(move |&(inner, ..)| inner.end > range.start && inner.start < range.end)

0 commit comments

Comments
 (0)