Skip to content

Commit

Permalink
refactor: Elide unnecessary lifetime.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Dec 12, 2024
1 parent 65bc448 commit 8cb578a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chain-ops/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct DateTimeSegmentedWriter<'r> {
file: Option<(DateAndHour, File)>,
}

impl<'r> DateTimeSegmentedWriter<'r> {
impl DateTimeSegmentedWriter<'_> {
fn open_file(
&mut self,
date_and_hour: DateAndHour,
Expand Down Expand Up @@ -114,7 +114,7 @@ impl<'r> DateTimeSegmentedWriter<'r> {
}
}

impl<'r> Write for DateTimeSegmentedWriter<'r> {
impl Write for DateTimeSegmentedWriter<'_> {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
let now = DateAndHour::now();

Expand Down
2 changes: 1 addition & 1 deletion chain-ops/src/task_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct JoinNext<'r, T, U> {
next_to_poll: &'r mut usize,
}

impl<'r, T, U> Future for JoinNext<'r, T, U>
impl<T, U> Future for JoinNext<'_, T, U>
where
T: Unpin,
{
Expand Down

0 comments on commit 8cb578a

Please sign in to comment.