diff --git a/yazi-core/src/tab/commands/copy.rs b/yazi-core/src/tab/commands/copy.rs index 068757fc..e3dc42c7 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, &h.url].into_iter()).peekable(); + it = Box::new([&h.url, &h.url].into_iter()).peekable() as Box + '_>; } else { return }; } while let Some(u) = it.next() {