File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ impl<'buffers> Patch<'buffers> {
125
125
}
126
126
127
127
/// Get the DiffDelta associated with the Patch.
128
- pub fn delta ( & self ) -> DiffDelta < ' buffers > {
128
+ pub fn delta < ' a > ( & ' a self ) -> DiffDelta < ' a > {
129
129
unsafe { Binding :: from_raw ( raw:: git_patch_get_delta ( self . raw ) as * mut _ ) }
130
130
}
131
131
@@ -151,7 +151,7 @@ impl<'buffers> Patch<'buffers> {
151
151
}
152
152
153
153
/// Get a DiffHunk and its total line count from the Patch.
154
- pub fn hunk ( & self , hunk_idx : usize ) -> Result < ( DiffHunk < ' buffers > , usize ) , Error > {
154
+ pub fn hunk < ' a > ( & ' a self , hunk_idx : usize ) -> Result < ( DiffHunk < ' a > , usize ) , Error > {
155
155
let mut ret = ptr:: null ( ) ;
156
156
let mut lines = 0 ;
157
157
unsafe {
@@ -168,11 +168,11 @@ impl<'buffers> Patch<'buffers> {
168
168
}
169
169
170
170
/// Get a DiffLine from a hunk of the Patch.
171
- pub fn line_in_hunk (
172
- & self ,
171
+ pub fn line_in_hunk < ' a > (
172
+ & ' a self ,
173
173
hunk_idx : usize ,
174
174
line_of_hunk : usize ,
175
- ) -> Result < DiffLine < ' buffers > , Error > {
175
+ ) -> Result < DiffLine < ' a > , Error > {
176
176
let mut ret = ptr:: null ( ) ;
177
177
unsafe {
178
178
try_call ! ( raw:: git_patch_get_line_in_hunk(
You can’t perform that action at this time.
0 commit comments