You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 20:17:55 UTC
(opendal-yinyang) branch xuanwo/managed-sync-cli updated: fix: drop the now-unused conflict-side string helper
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/managed-sync-cli
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/managed-sync-cli by this push:
new b630f3d fix: drop the now-unused conflict-side string helper
b630f3d is described below
commit b630f3dc7973b689458bc43381cf460642bf45db
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 04:17:50 2026 +0800
fix: drop the now-unused conflict-side string helper
Conflict-side export matches the enum directly, so `SyncSide::as_str` is
unused.
Co-authored-by: Chojan Shang <ps...@apache.org>
---
src/sync_cli.rs | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/sync_cli.rs b/src/sync_cli.rs
index 0b77bad..d77b172 100644
--- a/src/sync_cli.rs
+++ b/src/sync_cli.rs
@@ -84,13 +84,6 @@ pub enum SyncSide {
}
impl SyncSide {
- fn as_str(self) -> &'static str {
- match self {
- Self::Local => "local",
- Self::Remote => "remote",
- }
- }
-
fn domain_keep(self) -> domain::Resolution {
match self {
Self::Local => domain::Resolution::KeepLocal,