From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/package/link.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crates/shirabe/src/package/link.rs') diff --git a/crates/shirabe/src/package/link.rs b/crates/shirabe/src/package/link.rs index 2233eb1..e41d431 100644 --- a/crates/shirabe/src/package/link.rs +++ b/crates/shirabe/src/package/link.rs @@ -13,6 +13,20 @@ pub struct Link { pub(crate) pretty_constraint: Option, } +impl Clone for Link { + fn clone(&self) -> Self { + // TODO(phase-b): Link is a PHP class; this clone is a shallow placeholder until + // Link is shared via Rc. + Self { + source: self.source.clone(), + target: self.target.clone(), + constraint: self.constraint.clone_box(), + description: self.description.clone(), + pretty_constraint: self.pretty_constraint.clone(), + } + } +} + impl std::fmt::Debug for Link { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("Link") -- cgit v1.3.1