//! Binary Patch 模块占位 /// Binary Patch 应用(尚未实现)。 /// /// 返回 [`crate::PatchError::ApplyFailed`] 而非空结果,避免调用方把未实现的 /// 占位当成一次成功的补丁应用。 pub fn apply_patch(_old: &[u8], _patch: &[u8]) -> crate::Result> { Err(crate::PatchError::ApplyFailed( "binary patch 尚未实现".to_string(), )) } #[cfg(test)] mod tests { use super::*; #[test] fn apply_patch_reports_not_implemented() { let error = apply_patch(b"old", b"patch").unwrap_err(); assert!(matches!(error, crate::PatchError::ApplyFailed(_))); } }