diff --git a/Cargo.toml b/Cargo.toml index c5b10edb..949ef4ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,8 @@ unused_crate_dependencies = "warn" [workspace.lints.clippy] panic_in_result_fn = "warn" -pedantic = "warn" +# The explicit priority is required due to https://github.com/rust-lang/cargo/issues/13565. +pedantic = { level = "warn", priority = -1 } unwrap_used = "warn" # In most cases adding error docs provides little value. missing_errors_doc = "allow" diff --git a/libcnb-package/src/package.rs b/libcnb-package/src/package.rs index b8bcc4f9..2066be6e 100644 --- a/libcnb-package/src/package.rs +++ b/libcnb-package/src/package.rs @@ -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)?;