From 86647e7b5057826d7bb85381044d5b691fbbafa3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 7 Jun 2026 15:40:53 +0800 Subject: Move error handling into its own module and add show.binaries command --- mling/src/proj_mgr/metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mling/src/proj_mgr/metadata.rs') 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 { +pub fn read_metadata(cargo_toml: &PathBuf) -> Result { let output = Command::new("cargo") .arg("metadata") .arg("--format-version") -- cgit