Skip to content

Commit 2a2751b

Browse files
author
Stephan Dilly
committed
fix clippy nightly
1 parent 8905fd2 commit 2a2751b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/components/commit_details/details.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use asyncgit::{
1616
CWD,
1717
};
1818
use crossterm::event::Event;
19-
use itertools::Itertools;
2019
use std::clone::Clone;
2120
use std::{borrow::Cow, cell::Cell};
2221
use sync::CommitTags;
@@ -219,19 +218,19 @@ impl DetailsComponent {
219218
)));
220219

221220
res.push(Spans::from(
222-
self.tags
223-
.iter()
224-
.map(|tag| {
221+
itertools::Itertools::intersperse(
222+
self.tags.iter().map(|tag| {
225223
Span::styled(
226224
Cow::from(tag),
227225
self.theme.text(true, false),
228226
)
229-
})
230-
.intersperse(Span::styled(
227+
}),
228+
Span::styled(
231229
Cow::from(","),
232230
self.theme.text(true, false),
233-
))
234-
.collect::<Vec<Span>>(),
231+
),
232+
)
233+
.collect::<Vec<Span>>(),
235234
));
236235
}
237236

0 commit comments

Comments
 (0)