Skip to content

Commit

Permalink
it's always best to make sure your code compiles before you push it t…
Browse files Browse the repository at this point in the history
…o all the branches
  • Loading branch information
eeeebbbbrrrr committed Nov 9, 2021
1 parent a3ce00c commit b922202
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cargo-pgx/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ fn copy_file(src: PathBuf, dest: PathBuf, msg: &str) {
);

// we want to filter the contents of each sql file
let mut input = handle_result!(
std::fs::read_to_string($src), format!("failed to read `{}`", src.display())
let input = handle_result!(
std::fs::read_to_string(&src),
format!("failed to read `{}`", src.display())
);
let input = filter_contents(input);

Expand Down

0 comments on commit b922202

Please sign in to comment.