From 4e627f31ba975c8449049bc74bb24e4ca112b65c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 19 Nov 2025 17:19:52 +0800 Subject: Derive Clone for LocalConfig and fix mapping_mut signature The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly. --- crates/vcs_data/src/data/local/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/vcs_data/src/data/local') diff --git a/crates/vcs_data/src/data/local/config.rs b/crates/vcs_data/src/data/local/config.rs index c51147c..5b288cc 100644 --- a/crates/vcs_data/src/data/local/config.rs +++ b/crates/vcs_data/src/data/local/config.rs @@ -21,7 +21,7 @@ use crate::data::vault::config::VaultUuid; const ACCOUNT: &str = "{account}"; const SHEET_NAME: &str = "{sheet_name}"; -#[derive(Serialize, Deserialize, ConfigFile)] +#[derive(Serialize, Deserialize, ConfigFile, Clone)] #[cfg_file(path = CLIENT_FILE_WORKSPACE)] pub struct LocalConfig { /// The upstream address, representing the upstream address of the local workspace, -- cgit