Skip to content

Commit 87041ea

Browse files
committed
acpi: remove needless lifetimes
Running clippy on the ACPI crate returns several warnings about unneeded lifetimes, so remove them.
1 parent e46723a commit 87041ea

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

acpi/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ where
431431
handler: H,
432432
}
433433

434-
impl<'t, H> Iterator for SsdtIterator<'t, H>
434+
impl<H> Iterator for SsdtIterator<'_, H>
435435
where
436436
H: AcpiHandler,
437437
{
@@ -479,7 +479,7 @@ where
479479
handler: H,
480480
}
481481

482-
impl<'t, H> Iterator for SdtHeaderIterator<'t, H>
482+
impl<H> Iterator for SdtHeaderIterator<'_, H>
483483
where
484484
H: AcpiHandler,
485485
{

acpi/src/managed_slice.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where
1616
allocator: A,
1717
}
1818

19-
impl<'a, T, A> ManagedSlice<'a, T, A>
19+
impl<T, A> ManagedSlice<'_, T, A>
2020
where
2121
A: Allocator,
2222
{
@@ -34,13 +34,13 @@ where
3434
}
3535

3636
#[cfg(feature = "alloc")]
37-
impl<'a, T> ManagedSlice<'a, T, alloc::alloc::Global> {
37+
impl<T> ManagedSlice<'_, T, alloc::alloc::Global> {
3838
pub fn new(len: usize) -> AcpiResult<Self> {
3939
Self::new_in(len, alloc::alloc::Global)
4040
}
4141
}
4242

43-
impl<'a, T, A> Drop for ManagedSlice<'a, T, A>
43+
impl<T, A> Drop for ManagedSlice<'_, T, A>
4444
where
4545
A: Allocator,
4646
{
@@ -54,7 +54,7 @@ where
5454
}
5555
}
5656

57-
impl<'a, T, A> core::ops::Deref for ManagedSlice<'a, T, A>
57+
impl<T, A> core::ops::Deref for ManagedSlice<'_, T, A>
5858
where
5959
A: Allocator,
6060
{
@@ -65,7 +65,7 @@ where
6565
}
6666
}
6767

68-
impl<'a, T, A> core::ops::DerefMut for ManagedSlice<'a, T, A>
68+
impl<T, A> core::ops::DerefMut for ManagedSlice<'_, T, A>
6969
where
7070
A: Allocator,
7171
{

acpi/src/platform/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ where
102102
}
103103

104104
#[cfg(feature = "alloc")]
105-
impl<'a> PlatformInfo<'a, alloc::alloc::Global> {
105+
impl PlatformInfo<'_, alloc::alloc::Global> {
106106
pub fn new<H>(tables: &AcpiTables<H>) -> AcpiResult<Self>
107107
where
108108
H: AcpiHandler,
@@ -111,7 +111,7 @@ impl<'a> PlatformInfo<'a, alloc::alloc::Global> {
111111
}
112112
}
113113

114-
impl<'a, A> PlatformInfo<'a, A>
114+
impl<A> PlatformInfo<'_, A>
115115
where
116116
A: Allocator + Clone,
117117
{

0 commit comments

Comments
 (0)