aboutsummaryrefslogtreecommitdiff
path: root/mling/src/proj_mgr/metadata.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-07 15:40:53 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-07 15:40:53 +0800
commit86647e7b5057826d7bb85381044d5b691fbbafa3 (patch)
tree69a1768c3c8f571bfde426948bb58fe2e3e93bf2 /mling/src/proj_mgr/metadata.rs
parent8aa276beb88086b866be8a446289106be237348a (diff)
Move error handling into its own module and add show.binaries command
Diffstat (limited to 'mling/src/proj_mgr/metadata.rs')
-rw-r--r--mling/src/proj_mgr/metadata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mling/src/proj_mgr/metadata.rs b/mling/src/proj_mgr/metadata.rs
index c44ed46..84da69f 100644
--- a/mling/src/proj_mgr/metadata.rs
+++ b/mling/src/proj_mgr/metadata.rs
@@ -5,7 +5,7 @@ use std::path::PathBuf;
use std::process::Command;
/// Read cargo metadata by running `cargo metadata` with the given manifest path.
-pub fn read_metadata(cargo_toml: PathBuf) -> Result<CargoLockFile, std::io::Error> {
+pub fn read_metadata(cargo_toml: &PathBuf) -> Result<CargoLockFile, std::io::Error> {
let output = Command::new("cargo")
.arg("metadata")
.arg("--format-version")