@@ -2076,7 +2076,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
2076
2076
self . in_codegen_phase( ) ,
2077
2077
"You're not supposed to call this yet"
2078
2078
) ;
2079
- self . options . opaque_types . matches ( & path[ 1 ..] . join ( "::" ) )
2079
+ self . options . opaque_types . matches ( path[ 1 ..] . join ( "::" ) )
2080
2080
}
2081
2081
2082
2082
/// Get the options used to configure this bindgen context.
@@ -2314,7 +2314,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
2314
2314
if self
2315
2315
. options ( )
2316
2316
. allowlisted_files
2317
- . matches ( & filename)
2317
+ . matches ( filename)
2318
2318
{
2319
2319
return true ;
2320
2320
}
@@ -2389,7 +2389,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
2389
2389
) ;
2390
2390
let name = prefix_path[ 1 ..] . join ( "::" ) ;
2391
2391
prefix_path. pop ( ) . unwrap ( ) ;
2392
- self . options ( ) . allowlisted_vars . matches ( & name)
2392
+ self . options ( ) . allowlisted_vars . matches ( name)
2393
2393
} )
2394
2394
}
2395
2395
}
@@ -2671,37 +2671,37 @@ If you encounter an error missing from this list, please file an issue or a PR!"
2671
2671
/// Check if `--no-partialeq` flag is enabled for this item.
2672
2672
pub fn no_partialeq_by_name ( & self , item : & Item ) -> bool {
2673
2673
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2674
- self . options ( ) . no_partialeq_types . matches ( & name)
2674
+ self . options ( ) . no_partialeq_types . matches ( name)
2675
2675
}
2676
2676
2677
2677
/// Check if `--no-copy` flag is enabled for this item.
2678
2678
pub fn no_copy_by_name ( & self , item : & Item ) -> bool {
2679
2679
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2680
- self . options ( ) . no_copy_types . matches ( & name)
2680
+ self . options ( ) . no_copy_types . matches ( name)
2681
2681
}
2682
2682
2683
2683
/// Check if `--no-debug` flag is enabled for this item.
2684
2684
pub fn no_debug_by_name ( & self , item : & Item ) -> bool {
2685
2685
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2686
- self . options ( ) . no_debug_types . matches ( & name)
2686
+ self . options ( ) . no_debug_types . matches ( name)
2687
2687
}
2688
2688
2689
2689
/// Check if `--no-default` flag is enabled for this item.
2690
2690
pub fn no_default_by_name ( & self , item : & Item ) -> bool {
2691
2691
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2692
- self . options ( ) . no_default_types . matches ( & name)
2692
+ self . options ( ) . no_default_types . matches ( name)
2693
2693
}
2694
2694
2695
2695
/// Check if `--no-hash` flag is enabled for this item.
2696
2696
pub fn no_hash_by_name ( & self , item : & Item ) -> bool {
2697
2697
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2698
- self . options ( ) . no_hash_types . matches ( & name)
2698
+ self . options ( ) . no_hash_types . matches ( name)
2699
2699
}
2700
2700
2701
2701
/// Check if `--must-use-type` flag is enabled for this item.
2702
2702
pub fn must_use_type_by_name ( & self , item : & Item ) -> bool {
2703
2703
let name = item. path_for_allowlisting ( self ) [ 1 ..] . join ( "::" ) ;
2704
- self . options ( ) . must_use_types . matches ( & name)
2704
+ self . options ( ) . must_use_types . matches ( name)
2705
2705
}
2706
2706
}
2707
2707
0 commit comments