From a7c7935423ce460a4cc89187a00416e2e2e79bf9 Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Fri, 2 May 2025 14:08:20 +0800 Subject: [PATCH] fix --- yazi-core/src/tab/commands/copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-core/src/tab/commands/copy.rs b/yazi-core/src/tab/commands/copy.rs index c83e2dfc..0a4356e8 100644 --- a/yazi-core/src/tab/commands/copy.rs +++ b/yazi-core/src/tab/commands/copy.rs @@ -32,7 +32,7 @@ impl Tab { let mut it = self.selected_or_hovered().peekable(); if opt.hovered { if let Some(h) = self.hovered() { - it = Box::new([&h.url].into_iter()).peekable() as Box + '_>; + it = Box::new(vec![&h.url].into_iter()).peekable() as Box + '_>; } else { return }; } while let Some(u) = it.next() {