File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ impl<'a> Iterator for Paragraphs<'a> {
465
465
}
466
466
}
467
467
468
- fn paragraphs ( text : & str ) -> Paragraphs {
468
+ fn paragraphs ( text : & str ) -> Paragraphs < ' _ > {
469
469
Paragraphs { text }
470
470
}
471
471
@@ -507,6 +507,6 @@ impl<'a> Iterator for WrappedLines<'a> {
507
507
}
508
508
}
509
509
510
- fn wrap ( text : & str , width : usize ) -> WrappedLines {
510
+ fn wrap ( text : & str , width : usize ) -> WrappedLines < ' _ > {
511
511
WrappedLines { text, width }
512
512
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub(crate) trait CommitExtended<'a> {
22
22
fn author_strict ( & self ) -> Result < gix:: actor:: Signature > ;
23
23
24
24
/// Get commit message with extended capabilities.
25
- fn message_ex ( & self ) -> Message ;
25
+ fn message_ex ( & self ) -> Message < ' _ > ;
26
26
27
27
/// Determine whether the commit has the same tree as its parent.
28
28
fn is_no_change ( & self ) -> Result < bool > ;
@@ -71,7 +71,7 @@ impl<'a> CommitExtended<'a> for gix::Commit<'a> {
71
71
}
72
72
}
73
73
74
- fn message_ex ( & self ) -> Message {
74
+ fn message_ex ( & self ) -> Message < ' _ > {
75
75
let commit_ref = self . decode ( ) . expect ( "commit can be decoded" ) ;
76
76
if let Ok ( message) = commit_ref. message . to_str ( ) {
77
77
Message :: Str ( message)
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ impl<'repo> StackTransaction<'repo> {
524
524
commit : Rc :: new ( commit) ,
525
525
} ) ,
526
526
) ;
527
- self . ui . print_popped ( & [ patchname . clone ( ) ] ) ?;
527
+ self . ui . print_popped ( std :: slice :: from_ref ( patchname ) ) ?;
528
528
Ok ( ( ) )
529
529
}
530
530
You can’t perform that action at this time.
0 commit comments