@@ -34,9 +34,8 @@ pub struct MergeFileOptions {
34
34
}
35
35
36
36
/// Information about file-level merging.
37
- pub struct MergeFileResult < ' repo > {
37
+ pub struct MergeFileResult {
38
38
raw : raw:: git_merge_file_result ,
39
- _marker : marker:: PhantomData < & ' repo str > ,
40
39
}
41
40
42
41
impl < ' repo > AnnotatedCommit < ' repo > {
@@ -354,7 +353,7 @@ impl MergeFileOptions {
354
353
}
355
354
}
356
355
357
- impl < ' repo > MergeFileResult < ' repo > {
356
+ impl MergeFileResult {
358
357
/// True if the output was automerged, false if the output contains
359
358
/// conflict markers.
360
359
pub fn is_automergeable ( & self ) -> bool {
@@ -381,31 +380,28 @@ impl<'repo> MergeFileResult<'repo> {
381
380
}
382
381
383
382
/// The contents of the merge.
384
- pub fn content ( & self ) -> & ' repo [ u8 ] {
383
+ pub fn content ( & self ) -> & [ u8 ] {
385
384
unsafe { std:: slice:: from_raw_parts ( self . raw . ptr as * const u8 , self . raw . len as usize ) }
386
385
}
387
386
}
388
387
389
- impl < ' repo > Binding for MergeFileResult < ' repo > {
388
+ impl Binding for MergeFileResult {
390
389
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 }
396
392
}
397
393
fn raw ( & self ) -> raw:: git_merge_file_result {
398
394
unimplemented ! ( )
399
395
}
400
396
}
401
397
402
- impl < ' repo > Drop for MergeFileResult < ' repo > {
398
+ impl Drop for MergeFileResult {
403
399
fn drop ( & mut self ) {
404
400
unsafe { raw:: git_merge_file_result_free ( & mut self . raw ) }
405
401
}
406
402
}
407
403
408
- impl < ' repo > std:: fmt:: Debug for MergeFileResult < ' repo > {
404
+ impl std:: fmt:: Debug for MergeFileResult {
409
405
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
410
406
let mut ds = f. debug_struct ( "MergeFileResult" ) ;
411
407
if let Some ( path) = & self . path ( ) {
0 commit comments