diff options
author | Nathan Vegdahl | 2021-06-21 19:02:44 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-06-21 19:02:44 +0000 |
commit | 7c4fa18764ed6a6c30125ed6bfc9b025216e9668 (patch) | |
tree | eae57f3ab8f4545b6dc0a9822bcbbd9b75afdc1e /helix-term | |
parent | d33355650fd53c05b4e3d4e0f421eaf013b5ea1e (diff) |
Fix clippy warnings.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 6ccbaaff..5cb30da6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1304,7 +1304,10 @@ mod cmd { fn yank_joined_to_clipboard(editor: &mut Editor, args: &[&str], _: PromptEvent) { let (_, doc) = current!(editor); - let separator = args.first().copied().unwrap_or(doc.line_ending.as_str()); + let separator = args + .first() + .copied() + .unwrap_or_else(|| doc.line_ending.as_str()); yank_joined_to_clipboard_impl(editor, separator); } |