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