@@ -34,9 +34,8 @@ pub struct MergeFileOptions {
3434}
3535
3636/// Information about file-level merging.
37- pub struct MergeFileResult < ' repo > {
37+ pub struct MergeFileResult {
3838 raw : raw:: git_merge_file_result ,
39- _marker : marker:: PhantomData < & ' repo str > ,
4039}
4140
4241impl < ' repo > AnnotatedCommit < ' repo > {
@@ -354,7 +353,7 @@ impl MergeFileOptions {
354353 }
355354}
356355
357- impl < ' repo > MergeFileResult < ' repo > {
356+ impl MergeFileResult {
358357 /// True if the output was automerged, false if the output contains
359358 /// conflict markers.
360359 pub fn is_automergeable ( & self ) -> bool {
@@ -381,31 +380,28 @@ impl<'repo> MergeFileResult<'repo> {
381380 }
382381
383382 /// The contents of the merge.
384- pub fn content ( & self ) -> & ' repo [ u8 ] {
383+ pub fn content ( & self ) -> & [ u8 ] {
385384 unsafe { std:: slice:: from_raw_parts ( self . raw . ptr as * const u8 , self . raw . len as usize ) }
386385 }
387386}
388387
389- impl < ' repo > Binding for MergeFileResult < ' repo > {
388+ impl Binding for MergeFileResult {
390389 type Raw = raw:: git_merge_file_result ;
391- unsafe fn from_raw ( raw : raw:: git_merge_file_result ) -> MergeFileResult < ' repo > {
392- MergeFileResult {
393- raw,
394- _marker : marker:: PhantomData ,
395- }
390+ unsafe fn from_raw ( raw : raw:: git_merge_file_result ) -> MergeFileResult {
391+ MergeFileResult { raw }
396392 }
397393 fn raw ( & self ) -> raw:: git_merge_file_result {
398394 unimplemented ! ( )
399395 }
400396}
401397
402- impl < ' repo > Drop for MergeFileResult < ' repo > {
398+ impl Drop for MergeFileResult {
403399 fn drop ( & mut self ) {
404400 unsafe { raw:: git_merge_file_result_free ( & mut self . raw ) }
405401 }
406402}
407403
408- impl < ' repo > std:: fmt:: Debug for MergeFileResult < ' repo > {
404+ impl std:: fmt:: Debug for MergeFileResult {
409405 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
410406 let mut ds = f. debug_struct ( "MergeFileResult" ) ;
411407 if let Some ( path) = & self . path ( ) {
0 commit comments