mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-29 12:06:26 +03:00
fix clippy nightly
This commit is contained in:
parent
8905fd22ea
commit
2a2751bf2a
@ -16,7 +16,6 @@ use asyncgit::{
|
|||||||
CWD,
|
CWD,
|
||||||
};
|
};
|
||||||
use crossterm::event::Event;
|
use crossterm::event::Event;
|
||||||
use itertools::Itertools;
|
|
||||||
use std::clone::Clone;
|
use std::clone::Clone;
|
||||||
use std::{borrow::Cow, cell::Cell};
|
use std::{borrow::Cow, cell::Cell};
|
||||||
use sync::CommitTags;
|
use sync::CommitTags;
|
||||||
@ -219,19 +218,19 @@ impl DetailsComponent {
|
|||||||
)));
|
)));
|
||||||
|
|
||||||
res.push(Spans::from(
|
res.push(Spans::from(
|
||||||
self.tags
|
itertools::Itertools::intersperse(
|
||||||
.iter()
|
self.tags.iter().map(|tag| {
|
||||||
.map(|tag| {
|
|
||||||
Span::styled(
|
Span::styled(
|
||||||
Cow::from(tag),
|
Cow::from(tag),
|
||||||
self.theme.text(true, false),
|
self.theme.text(true, false),
|
||||||
)
|
)
|
||||||
})
|
}),
|
||||||
.intersperse(Span::styled(
|
Span::styled(
|
||||||
Cow::from(","),
|
Cow::from(","),
|
||||||
self.theme.text(true, false),
|
self.theme.text(true, false),
|
||||||
))
|
),
|
||||||
.collect::<Vec<Span>>(),
|
)
|
||||||
|
.collect::<Vec<Span>>(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user