@@ -2076,7 +2076,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
20762076 self . in_codegen_phase( ) ,
20772077 "You're not supposed to call this yet"
20782078 ) ;
2079- self . options . opaque_types . matches ( & path[ 1 ..] . join ( "::" ) )
2079+ self . options . opaque_types . matches ( path[ 1 ..] . join ( "::" ) )
20802080 }
20812081
20822082 /// 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!"
23142314 if self
23152315 . options ( )
23162316 . allowlisted_files
2317- . matches ( & filename)
2317+ . matches ( filename)
23182318 {
23192319 return true ;
23202320 }
@@ -2389,7 +2389,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
23892389 ) ;
23902390 let name = prefix_path[ 1 ..] . join ( "::" ) ;
23912391 prefix_path. pop ( ) . unwrap ( ) ;
2392- self . options ( ) . allowlisted_vars . matches ( & name)
2392+ self . options ( ) . allowlisted_vars . matches ( name)
23932393 } )
23942394 }
23952395 }
@@ -2671,37 +2671,37 @@ If you encounter an error missing from this list, please file an issue or a PR!"
26712671 /// Check if `--no-partialeq` flag is enabled for this item.
26722672 pub fn no_partialeq_by_name ( & self , item : & Item ) -> bool {
26732673 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)
26752675 }
26762676
26772677 /// Check if `--no-copy` flag is enabled for this item.
26782678 pub fn no_copy_by_name ( & self , item : & Item ) -> bool {
26792679 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)
26812681 }
26822682
26832683 /// Check if `--no-debug` flag is enabled for this item.
26842684 pub fn no_debug_by_name ( & self , item : & Item ) -> bool {
26852685 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)
26872687 }
26882688
26892689 /// Check if `--no-default` flag is enabled for this item.
26902690 pub fn no_default_by_name ( & self , item : & Item ) -> bool {
26912691 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)
26932693 }
26942694
26952695 /// Check if `--no-hash` flag is enabled for this item.
26962696 pub fn no_hash_by_name ( & self , item : & Item ) -> bool {
26972697 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)
26992699 }
27002700
27012701 /// Check if `--must-use-type` flag is enabled for this item.
27022702 pub fn must_use_type_by_name ( & self , item : & Item ) -> bool {
27032703 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)
27052705 }
27062706}
27072707
0 commit comments