Skip to content

Commit b14c715

Browse files
committed
Merge branch 'clippy' into pyo3
2 parents 4f70655 + 7b1a204 commit b14c715

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

color-eyre/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub struct Frame {
160160
#[derive(Debug)]
161161
struct StyledFrame<'a>(&'a Frame, Theme);
162162

163-
impl<'a> fmt::Display for StyledFrame<'a> {
163+
impl fmt::Display for StyledFrame<'_> {
164164
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
165165
let Self(frame, theme) = self;
166166

color-eyre/src/writers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl<'a, H: ?Sized, W> HeaderWriter<'a, H, W> {
6767
}
6868
}
6969

70-
impl<'a, H: ?Sized, W> fmt::Write for ReadyHeaderWriter<'a, '_, H, W>
70+
impl<H: ?Sized, W> fmt::Write for ReadyHeaderWriter<'_, '_, H, W>
7171
where
7272
H: Display,
7373
W: fmt::Write,

eyre/src/ptr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ pub(crate) struct RefPtr<'a, T: ?Sized> {
7575
unsafe impl<'a, T: ?Sized> Send for RefPtr<'a, T> where &'a T: Send {}
7676
unsafe impl<'a, T: ?Sized> Sync for RefPtr<'a, T> where &'a T: Sync {}
7777

78-
impl<'a, T: ?Sized> Copy for RefPtr<'a, T> {}
79-
impl<'a, T: ?Sized> Clone for RefPtr<'a, T> {
78+
impl<T: ?Sized> Copy for RefPtr<'_, T> {}
79+
impl<T: ?Sized> Clone for RefPtr<'_, T> {
8080
fn clone(&self) -> Self {
8181
*self
8282
}
@@ -121,8 +121,8 @@ pub(crate) struct MutPtr<'a, T: ?Sized> {
121121
unsafe impl<'a, T: ?Sized> Send for MutPtr<'a, T> where &'a mut T: Send {}
122122
unsafe impl<'a, T: ?Sized> Sync for MutPtr<'a, T> where &'a mut T: Sync {}
123123

124-
impl<'a, T: ?Sized> Copy for MutPtr<'a, T> {}
125-
impl<'a, T: ?Sized> Clone for MutPtr<'a, T> {
124+
impl<T: ?Sized> Copy for MutPtr<'_, T> {}
125+
impl<T: ?Sized> Clone for MutPtr<'_, T> {
126126
fn clone(&self) -> Self {
127127
*self
128128
}

0 commit comments

Comments
 (0)