Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
```
error: the borrowed expression implements the required traits
  --> libcnb-package/src/package.rs:67:24
   |
67 |         .manifest_path(&buildpack_directory.join("Cargo.toml"))
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `buildpack_directory.join("Cargo.toml")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`

error: could not compile `libcnb-package` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.
```
  • Loading branch information
schneems committed Aug 27, 2024
1 parent 9cbb090 commit 7dad43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcnb-package/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn package_libcnb_buildpack(
destination: &Path,
) -> Result<(), PackageLibcnbBuildpackError> {
let cargo_metadata = MetadataCommand::new()
.manifest_path(&buildpack_directory.join("Cargo.toml"))
.manifest_path(buildpack_directory.join("Cargo.toml"))
.exec()
.map_err(PackageLibcnbBuildpackError::CargoMetadataError)?;

Expand Down

0 comments on commit 7dad43f

Please sign in to comment.