From 65ff1582fd338d940139d6b49f59f83f4d6fb74b Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 18 Sep 2025 15:59:09 -0700 Subject: [PATCH] impl Clone for Box --- src/command_display.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/command_display.rs b/src/command_display.rs index 30eeb17..5912b72 100644 --- a/src/command_display.rs +++ b/src/command_display.rs @@ -65,3 +65,9 @@ pub trait CommandDisplay: Display + DynClone { /// ``` fn args(&self) -> Box> + '_>; } + +impl Clone for Box { + fn clone(&self) -> Self { + dyn_clone::clone_box(&**self) + } +}