File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/components/commit_details Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use asyncgit::{
16
16
CWD ,
17
17
} ;
18
18
use crossterm:: event:: Event ;
19
- use itertools:: Itertools ;
20
19
use std:: clone:: Clone ;
21
20
use std:: { borrow:: Cow , cell:: Cell } ;
22
21
use sync:: CommitTags ;
@@ -219,19 +218,19 @@ impl DetailsComponent {
219
218
) ) ) ;
220
219
221
220
res. push ( Spans :: from (
222
- self . tags
223
- . iter ( )
224
- . map ( |tag| {
221
+ itertools:: Itertools :: intersperse (
222
+ self . tags . iter ( ) . map ( |tag| {
225
223
Span :: styled (
226
224
Cow :: from ( tag) ,
227
225
self . theme . text ( true , false ) ,
228
226
)
229
- } )
230
- . intersperse ( Span :: styled (
227
+ } ) ,
228
+ Span :: styled (
231
229
Cow :: from ( "," ) ,
232
230
self . theme . text ( true , false ) ,
233
- ) )
234
- . collect :: < Vec < Span > > ( ) ,
231
+ ) ,
232
+ )
233
+ . collect :: < Vec < Span > > ( ) ,
235
234
) ) ;
236
235
}
237
236
You can’t perform that action at this time.
0 commit comments