Skip to content

Commit f3e1d5c

Browse files
committed
fix: remove redundant lifetimes in Scope, OwningScope, and ManualOwningScope
1 parent f4a728e commit f3e1d5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scope.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct Scope<'a, Recorder: ProfilerCommandRecorder> {
1212
pub scope: Option<GpuProfilerQuery>,
1313
}
1414

15-
impl<'a, R: ProfilerCommandRecorder> Drop for Scope<'a, R> {
15+
impl<R: ProfilerCommandRecorder> Drop for Scope<'_, R> {
1616
#[inline]
1717
fn drop(&mut self) {
1818
if let Some(scope) = self.scope.take() {
@@ -30,7 +30,7 @@ pub struct OwningScope<'a, Recorder: ProfilerCommandRecorder> {
3030
pub scope: Option<GpuProfilerQuery>,
3131
}
3232

33-
impl<'a, R: ProfilerCommandRecorder> Drop for OwningScope<'a, R> {
33+
impl<R: ProfilerCommandRecorder> Drop for OwningScope<'_, R> {
3434
#[inline]
3535
fn drop(&mut self) {
3636
if let Some(scope) = self.scope.take() {
@@ -51,7 +51,7 @@ pub struct ManualOwningScope<'a, Recorder: ProfilerCommandRecorder> {
5151
pub scope: Option<GpuProfilerQuery>,
5252
}
5353

54-
impl<'a, R: ProfilerCommandRecorder> ManualOwningScope<'a, R> {
54+
impl<R: ProfilerCommandRecorder> ManualOwningScope<'_, R> {
5555
/// Ends the scope allowing the extraction of the owned [`ProfilerCommandRecorder`].
5656
#[track_caller]
5757
#[inline]

0 commit comments

Comments
 (0)