@@ -226,7 +226,7 @@ enum DriverInitFunc<'a> {
226226}
227227
228228/// Allow using [DriverInitFunc] as a function pointer.
229- impl < ' a > ops:: Deref for DriverInitFunc < ' a > {
229+ impl ops:: Deref for DriverInitFunc < ' _ > {
230230 type Target = FFI_AdbcDriverInitFunc ;
231231
232232 fn deref ( & self ) -> & Self :: Target {
@@ -346,10 +346,10 @@ impl<'a> DriverLibrary<'a> {
346346 Ok ( SearchHit :: new ( info. lib_path , library, info. entrypoint ) )
347347 }
348348
349- pub ( crate ) fn derive_entrypoint < ' b > (
350- entrypoint : Option < & ' b [ u8 ] > ,
349+ pub ( crate ) fn derive_entrypoint (
350+ entrypoint : Option < & [ u8 ] > ,
351351 driver_path : impl AsRef < OsStr > ,
352- ) -> Cow < ' b , [ u8 ] > {
352+ ) -> Cow < ' _ , [ u8 ] > {
353353 if let Some ( entrypoint) = entrypoint {
354354 Cow :: Borrowed ( entrypoint)
355355 } else {
@@ -788,28 +788,30 @@ fn system_config_dir() -> Option<PathBuf> {
788788
789789fn get_search_paths ( lvls : LoadFlags ) -> Vec < PathBuf > {
790790 let mut result = Vec :: new ( ) ;
791- if lvls & LOAD_FLAG_SEARCH_ENV != 0
792- && let Some ( paths) = env:: var_os ( "ADBC_DRIVER_PATH" )
793- {
794- for p in env :: split_paths ( & paths ) {
795- result . push ( p ) ;
791+ if lvls & LOAD_FLAG_SEARCH_ENV != 0 {
792+ if let Some ( paths) = env:: var_os ( "ADBC_DRIVER_PATH" ) {
793+ for p in env :: split_paths ( & paths ) {
794+ result . push ( p ) ;
795+ }
796796 }
797797 }
798798
799- if lvls & LOAD_FLAG_SEARCH_USER != 0
800- && let Some ( path) = user_config_dir ( )
801- && path. exists ( )
802- {
803- result. push ( path) ;
799+ if lvls & LOAD_FLAG_SEARCH_USER != 0 {
800+ if let Some ( path) = user_config_dir ( ) {
801+ if path. exists ( ) {
802+ result. push ( path) ;
803+ }
804+ }
804805 }
805806
806807 // system level for windows is to search the registry keys
807808 #[ cfg( not( windows) ) ]
808- if lvls & LOAD_FLAG_SEARCH_SYSTEM != 0
809- && let Some ( path) = system_config_dir ( )
810- && path. exists ( )
811- {
812- result. push ( path) ;
809+ if lvls & LOAD_FLAG_SEARCH_SYSTEM != 0 {
810+ if let Some ( path) = system_config_dir ( ) {
811+ if path. exists ( ) {
812+ result. push ( path) ;
813+ }
814+ }
813815 }
814816
815817 result
@@ -978,7 +980,7 @@ pub(crate) enum DriverLocator<'a> {
978980/// Returns `Status::InvalidArguments` if:
979981/// - The URI has no colon separator
980982/// - The URI format is invalid
981- pub ( crate ) fn parse_driver_uri < ' a > ( uri : & ' a str ) -> Result < DriverLocator < ' a > > {
983+ pub ( crate ) fn parse_driver_uri ( uri : & ' _ str ) -> Result < DriverLocator < ' _ > > {
982984 let idx = uri. find ( ":" ) . ok_or ( Error :: with_message_and_status (
983985 format ! ( "Invalid URI: {uri}" ) ,
984986 Status :: InvalidArguments ,
0 commit comments