Skip to content

Commit 5058cad

Browse files
committed
Remove unneeded lifetimes in array/mod.rs
1 parent 4d247ad commit 5058cad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

library/core/src/array/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -254,22 +254,22 @@ where
254254
}
255255

256256
#[stable(feature = "rust1", since = "1.0.0")]
257-
impl<'b, A, B, const N: usize> PartialEq<&'b [B]> for [A; N]
257+
impl<A, B, const N: usize> PartialEq<&[B]> for [A; N]
258258
where
259259
A: PartialEq<B>,
260260
{
261261
#[inline]
262-
fn eq(&self, other: &&'b [B]) -> bool {
262+
fn eq(&self, other: &&[B]) -> bool {
263263
self[..] == other[..]
264264
}
265265
#[inline]
266-
fn ne(&self, other: &&'b [B]) -> bool {
266+
fn ne(&self, other: &&[B]) -> bool {
267267
self[..] != other[..]
268268
}
269269
}
270270

271271
#[stable(feature = "rust1", since = "1.0.0")]
272-
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b [B]
272+
impl<A, B, const N: usize> PartialEq<[A; N]> for &[B]
273273
where
274274
B: PartialEq<A>,
275275
{
@@ -284,22 +284,22 @@ where
284284
}
285285

286286
#[stable(feature = "rust1", since = "1.0.0")]
287-
impl<'b, A, B, const N: usize> PartialEq<&'b mut [B]> for [A; N]
287+
impl<A, B, const N: usize> PartialEq<&mut [B]> for [A; N]
288288
where
289289
A: PartialEq<B>,
290290
{
291291
#[inline]
292-
fn eq(&self, other: &&'b mut [B]) -> bool {
292+
fn eq(&self, other: &&mut [B]) -> bool {
293293
self[..] == other[..]
294294
}
295295
#[inline]
296-
fn ne(&self, other: &&'b mut [B]) -> bool {
296+
fn ne(&self, other: &&mut [B]) -> bool {
297297
self[..] != other[..]
298298
}
299299
}
300300

301301
#[stable(feature = "rust1", since = "1.0.0")]
302-
impl<'b, A, B, const N: usize> PartialEq<[A; N]> for &'b mut [B]
302+
impl<A, B, const N: usize> PartialEq<[A; N]> for &mut [B]
303303
where
304304
B: PartialEq<A>,
305305
{

0 commit comments

Comments
 (0)