@@ -206,7 +206,7 @@ pub(super) fn find_custom_refname<'a>(
206206 object : None ,
207207 } )
208208 . collect ( ) ;
209- let res = group. match_remotes ( filtered_items. iter ( ) . copied ( ) ) ;
209+ let res = group. match_lhs ( filtered_items. iter ( ) . copied ( ) ) ;
210210 match res. mappings . len ( ) {
211211 0 => Err ( Error :: RefNameMissing {
212212 wanted : ref_name. clone ( ) ,
@@ -221,9 +221,9 @@ pub(super) fn find_custom_refname<'a>(
221221 wanted : ref_name. clone ( ) ,
222222 candidates : res
223223 . mappings
224- . iter ( )
224+ . into_iter ( )
225225 . filter_map ( |m| match m. lhs {
226- gix_refspec:: match_group:: SourceRef :: FullName ( name) => Some ( name. to_owned ( ) ) ,
226+ gix_refspec:: match_group:: SourceRef :: FullName ( name) => Some ( name. into_owned ( ) ) ,
227227 gix_refspec:: match_group:: SourceRef :: ObjectId ( _) => None ,
228228 } )
229229 . collect ( ) ,
@@ -252,7 +252,7 @@ fn setup_branch_config(
252252 . expect ( "remote was just created and must be visible in config" ) ;
253253 let group = gix_refspec:: MatchGroup :: from_fetch_specs ( remote. fetch_specs . iter ( ) . map ( gix_refspec:: RefSpec :: to_ref) ) ;
254254 let null = gix_hash:: ObjectId :: null ( repo. object_hash ( ) ) ;
255- let res = group. match_remotes (
255+ let res = group. match_lhs (
256256 Some ( gix_refspec:: match_group:: Item {
257257 full_ref_name : branch. as_bstr ( ) ,
258258 target : branch_id. unwrap_or ( & null) ,
0 commit comments