@@ -75,7 +75,7 @@ impl CommandExecute for Install {
7575 . wrap_err ( "couldn't get cargo metadata" ) ?;
7676 crate :: metadata:: validate ( self . manifest_path . as_deref ( ) , & metadata) ?;
7777 let package_manifest_path =
78- crate :: manifest:: manifest_path ( & metadata, self . package . as_ref ( ) )
78+ crate :: manifest:: manifest_path ( & metadata, self . package . as_deref ( ) )
7979 . wrap_err ( "Couldn't get manifest path" ) ?;
8080 let package_manifest =
8181 Manifest :: from_path ( & package_manifest_path) . wrap_err ( "Couldn't parse manifest" ) ?;
@@ -101,7 +101,7 @@ impl CommandExecute for Install {
101101 display_version_info ( & pg_config, & PgVersionSource :: PgConfig ( pg_config. label ( ) ?) ) ;
102102 install_extension (
103103 self . manifest_path . as_deref ( ) ,
104- self . package . as_ref ( ) ,
104+ self . package . as_deref ( ) ,
105105 & package_manifest_path,
106106 & pg_config,
107107 & profile,
@@ -123,7 +123,7 @@ impl CommandExecute for Install {
123123) ) ]
124124pub ( crate ) fn install_extension (
125125 user_manifest_path : Option < & Path > ,
126- user_package : Option < & String > ,
126+ user_package : Option < & str > ,
127127 package_manifest_path : & Path ,
128128 pg_config : & PgConfig ,
129129 profile : & CargoProfile ,
@@ -282,7 +282,7 @@ fn copy_file(
282282
283283pub ( crate ) fn build_extension (
284284 user_manifest_path : Option < & Path > ,
285- user_package : Option < & String > ,
285+ user_package : Option < & str > ,
286286 profile : & CargoProfile ,
287287 features : & clap_cargo:: Features ,
288288 target : Option < & str > ,
@@ -345,7 +345,7 @@ pub(crate) fn build_extension(
345345
346346fn copy_sql_files (
347347 user_manifest_path : Option < & Path > ,
348- user_package : Option < & String > ,
348+ user_package : Option < & str > ,
349349 package_manifest_path : & Path ,
350350 profile : & CargoProfile ,
351351 is_test : bool ,
0 commit comments