summaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src/registry/server_registry.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-05 16:45:30 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-05 16:46:22 +0800
commit8b3b92b405ebc96416ec300ad3f6260bd8354864 (patch)
treecf7a404b3ae78a8a7675eb2e587a07b383698198 /crates/vcs_actions/src/registry/server_registry.rs
parent7627c0e4911cc354e3dd7a3e445ee36252b1e9a6 (diff)
Add sheet restoration and drop functionality
- Add write_and_return macro for common result handling pattern - Extend make_sheet_action to restore sheets with no holder - Implement drop_sheet_action for releasing sheet ownership - Register new drop_sheet_action in client and server registries
Diffstat (limited to 'crates/vcs_actions/src/registry/server_registry.rs')
-rw-r--r--crates/vcs_actions/src/registry/server_registry.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/vcs_actions/src/registry/server_registry.rs b/crates/vcs_actions/src/registry/server_registry.rs
index eade391..b99d697 100644
--- a/crates/vcs_actions/src/registry/server_registry.rs
+++ b/crates/vcs_actions/src/registry/server_registry.rs
@@ -2,7 +2,7 @@ use action_system::action_pool::ActionPool;
use crate::actions::{
local_actions::{register_set_upstream_vault_action, register_update_to_latest_info_action},
- sheet_actions::register_make_sheet_action,
+ sheet_actions::{register_drop_sheet_action, register_make_sheet_action},
};
pub fn server_action_pool() -> ActionPool {
@@ -14,6 +14,7 @@ pub fn server_action_pool() -> ActionPool {
// Sheet Actions
register_make_sheet_action(&mut pool);
+ register_drop_sheet_action(&mut pool);
pool
}