File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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> {
125125 }
126126
127127 /// Get the DiffDelta associated with the Patch.
128- pub fn delta ( & self ) -> DiffDelta < ' buffers > {
128+ pub fn delta < ' a > ( & ' a self ) -> DiffDelta < ' a > {
129129 unsafe { Binding :: from_raw ( raw:: git_patch_get_delta ( self . raw ) as * mut _ ) }
130130 }
131131
@@ -151,7 +151,7 @@ impl<'buffers> Patch<'buffers> {
151151 }
152152
153153 /// 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 > {
155155 let mut ret = ptr:: null ( ) ;
156156 let mut lines = 0 ;
157157 unsafe {
@@ -168,11 +168,11 @@ impl<'buffers> Patch<'buffers> {
168168 }
169169
170170 /// 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 ,
173173 hunk_idx : usize ,
174174 line_of_hunk : usize ,
175- ) -> Result < DiffLine < ' buffers > , Error > {
175+ ) -> Result < DiffLine < ' a > , Error > {
176176 let mut ret = ptr:: null ( ) ;
177177 unsafe {
178178 try_call ! ( raw:: git_patch_get_line_in_hunk(
You can’t perform that action at this time.
0 commit comments