File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ pub fn run() -> Result<(), Error> {
6868 Action :: Schema { schema_files } => {
6969 // Run the generate command. If the command is unsuccessful, cleanup Cornucopia's container
7070 if let Err ( e) = generate_managed (
71- & queries_path,
71+ queries_path,
7272 & schema_files,
73- Some ( & destination) ,
73+ Some ( destination) ,
7474 podman,
7575 CodegenSettings {
7676 is_async : !sync,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub mod conn;
1414/// High-level interfaces to work with Cornucopia's container manager.
1515pub mod container;
1616
17- use std:: path:: { Path , PathBuf } ;
17+ use std:: path:: Path ;
1818
1919use postgres:: Client ;
2020
@@ -72,7 +72,7 @@ pub fn generate_live<P: AsRef<Path>>(
7272/// `podman` parameter to `true`.
7373pub fn generate_managed < P : AsRef < Path > > (
7474 queries_path : P ,
75- schema_files : & [ PathBuf ] ,
75+ schema_files : & [ P ] ,
7676 destination : Option < P > ,
7777 podman : bool ,
7878 settings : CodegenSettings ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn main() -> Result<(), Error> {
1717 println ! ( "cargo:rerun-if-changed={schema_file}" ) ;
1818 cornucopia:: generate_managed (
1919 queries_path,
20- & [ schema_file. into ( ) ] ,
20+ & [ schema_file] ,
2121 Some ( destination) ,
2222 false ,
2323 settings,
You can’t perform that action at this time.
0 commit comments