Skip to content

Commit bb0abe9

Browse files
Remove useless lifetimes from Pin impls.
1 parent c7df1f5 commit bb0abe9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcore/pin.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -293,21 +293,21 @@ where
293293
}
294294

295295
#[unstable(feature = "pin", issue = "49150")]
296-
impl<'a, P: fmt::Debug> fmt::Debug for Pin<P> {
296+
impl<P: fmt::Debug> fmt::Debug for Pin<P> {
297297
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
298298
fmt::Debug::fmt(&self.pointer, f)
299299
}
300300
}
301301

302302
#[unstable(feature = "pin", issue = "49150")]
303-
impl<'a, P: fmt::Display> fmt::Display for Pin<P> {
303+
impl<P: fmt::Display> fmt::Display for Pin<P> {
304304
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
305305
fmt::Display::fmt(&self.pointer, f)
306306
}
307307
}
308308

309309
#[unstable(feature = "pin", issue = "49150")]
310-
impl<'a, P: fmt::Pointer> fmt::Pointer for Pin<P> {
310+
impl<P: fmt::Pointer> fmt::Pointer for Pin<P> {
311311
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
312312
fmt::Pointer::fmt(&self.pointer, f)
313313
}
@@ -319,10 +319,10 @@ impl<'a, P: fmt::Pointer> fmt::Pointer for Pin<P> {
319319
// for other reasons, though, so we just need to take care not to allow such
320320
// impls to land in std.
321321
#[unstable(feature = "pin", issue = "49150")]
322-
impl<'a, P, U> CoerceUnsized<Pin<U>> for Pin<P>
322+
impl<P, U> CoerceUnsized<Pin<U>> for Pin<P>
323323
where
324324
P: CoerceUnsized<U>,
325325
{}
326326

327327
#[unstable(feature = "pin", issue = "49150")]
328-
impl<'a, P> Unpin for Pin<P> {}
328+
impl<P> Unpin for Pin<P> {}

0 commit comments

Comments
 (0)