File tree Expand file tree Collapse file tree 19 files changed +25
-25
lines changed Expand file tree Collapse file tree 19 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub fn get_default_remote(repo_path: &RepoPath) -> Result<String> {
120
120
/// and Err if there was a problem finding the branch
121
121
fn get_current_branch (
122
122
repo : & Repository ,
123
- ) -> Result < Option < git2:: Branch > > {
123
+ ) -> Result < Option < git2:: Branch < ' _ > > > {
124
124
for b in repo. branches ( None ) ? {
125
125
let branch = b?. 0 ;
126
126
if branch. is_head ( ) {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub fn reword(
62
62
/// and Err if there was a problem finding the branch
63
63
fn get_current_branch (
64
64
repo : & Repository ,
65
- ) -> Result < Option < git2:: Branch > > {
65
+ ) -> Result < Option < git2:: Branch < ' _ > > > {
66
66
for b in repo. branches ( None ) ? {
67
67
let branch = b?. 0 ;
68
68
if branch. is_head ( ) {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ impl CompareDetailsComponent {
58
58
} ) ;
59
59
}
60
60
61
- fn get_commit_text ( & self , data : & CommitDetails ) -> Vec < Line > {
61
+ fn get_commit_text ( & self , data : & CommitDetails ) -> Vec < Line < ' _ > > {
62
62
let mut res = vec ! [
63
63
Line :: from( vec![
64
64
style_detail( & self . theme, & Detail :: Author ) ,
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ impl DetailsComponent {
136
136
& self ,
137
137
width : usize ,
138
138
height : usize ,
139
- ) -> Vec < Line > {
139
+ ) -> Vec < Line < ' _ > > {
140
140
let ( wrapped_title, wrapped_message) =
141
141
Self :: get_wrapped_lines ( self . data . as_ref ( ) , width) ;
142
142
@@ -156,7 +156,7 @@ impl DetailsComponent {
156
156
}
157
157
158
158
#[ allow( clippy:: too_many_lines) ]
159
- fn get_text_info ( & self ) -> Vec < Line > {
159
+ fn get_text_info ( & self ) -> Vec < Line < ' _ > > {
160
160
self . data . as_ref ( ) . map_or_else ( Vec :: new, |data| {
161
161
let mut res = vec ! [
162
162
Line :: from( vec![
Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ impl CommitList {
565
565
Line :: from ( txt)
566
566
}
567
567
568
- fn get_text ( & self , height : usize , width : usize ) -> Vec < Line > {
568
+ fn get_text ( & self , height : usize , width : usize ) -> Vec < Line < ' _ > > {
569
569
let selection = self . relative_selection ( ) ;
570
570
571
571
let mut txt: Vec < Line > = Vec :: with_capacity ( height) ;
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ impl DiffComponent {
324
324
None
325
325
}
326
326
327
- fn get_text ( & self , width : u16 , height : u16 ) -> Vec < Line > {
327
+ fn get_text ( & self , width : u16 , height : u16 ) -> Vec < Line < ' _ > > {
328
328
if let Some ( diff) = & self . diff {
329
329
return if diff. hunks . is_empty ( ) {
330
330
self . get_text_binary ( diff)
@@ -387,7 +387,7 @@ impl DiffComponent {
387
387
vec ! [ ]
388
388
}
389
389
390
- fn get_text_binary ( & self , diff : & FileDiff ) -> Vec < Line > {
390
+ fn get_text_binary ( & self , diff : & FileDiff ) -> Vec < Line < ' _ > > {
391
391
let is_positive = diff. size_delta >= 0 ;
392
392
let delta_byte_size =
393
393
ByteSize :: b ( diff. size_delta . unsigned_abs ( ) ) ;
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl StatusTreeComponent {
223
223
/// allowing folders to be folded up if they are alone in their directory
224
224
fn build_vec_text_draw_info_for_drawing (
225
225
& self ,
226
- ) -> ( Vec < TextDrawInfo > , usize , usize ) {
226
+ ) -> ( Vec < TextDrawInfo < ' _ > > , usize , usize ) {
227
227
let mut should_skip_over: usize = 0 ;
228
228
let mut selection_offset: usize = 0 ;
229
229
let mut selection_offset_visible: usize = 0 ;
Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ impl BlameFilePopup {
529
529
}
530
530
531
531
///
532
- fn get_rows ( & self , width : usize ) -> Vec < Row > {
532
+ fn get_rows ( & self , width : usize ) -> Vec < Row < ' _ > > {
533
533
self . blame
534
534
. as_ref ( )
535
535
. and_then ( |blame| blame. result ( ) )
@@ -643,7 +643,7 @@ impl BlameFilePopup {
643
643
& self ,
644
644
width : usize ,
645
645
blame_hunk : Option < & BlameHunk > ,
646
- ) -> Vec < Cell > {
646
+ ) -> Vec < Cell < ' _ > > {
647
647
let commit_hash = blame_hunk. map_or_else (
648
648
|| NO_COMMIT_ID . into ( ) ,
649
649
|hunk| hunk. commit_id . get_short_string ( ) ,
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ impl BranchListPopup {
473
473
theme : & SharedTheme ,
474
474
width_available : u16 ,
475
475
height : usize ,
476
- ) -> Text {
476
+ ) -> Text < ' _ > {
477
477
const UPSTREAM_SYMBOL : char = '\u{2191}' ;
478
478
const TRACKING_SYMBOL : char = '\u{2193}' ;
479
479
const HEAD_SYMBOL : char = '*' ;
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ impl FileRevlogPopup {
263
263
)
264
264
}
265
265
266
- fn get_rows ( & self , now : DateTime < Local > ) -> Vec < Row > {
266
+ fn get_rows ( & self , now : DateTime < Local > ) -> Vec < Row < ' _ > > {
267
267
self . items
268
268
. iter ( )
269
269
. map ( |entry| {
You can’t perform that action at this time.
0 commit comments