From d4d7609dd8b8ca04a658b9d1ddf9e805afff8609 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 13 Dec 2021 23:53:09 +0100 Subject: [PATCH] fix(clipboard): fix clippy warning --- espanso-clipboard/src/wayland/fallback/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/espanso-clipboard/src/wayland/fallback/mod.rs b/espanso-clipboard/src/wayland/fallback/mod.rs index f566a41..d6f27b6 100644 --- a/espanso-clipboard/src/wayland/fallback/mod.rs +++ b/espanso-clipboard/src/wayland/fallback/mod.rs @@ -135,7 +135,7 @@ impl Clipboard for WaylandFallbackClipboard { file.read_to_end(&mut data)?; self.invoke_command_with_timeout( - &mut Command::new("wl-copy").arg("--type").arg("image/png"), + Command::new("wl-copy").arg("--type").arg("image/png"), &data, "wl-copy", ) @@ -148,7 +148,7 @@ impl Clipboard for WaylandFallbackClipboard { _: &ClipboardOperationOptions, ) -> anyhow::Result<()> { self.invoke_command_with_timeout( - &mut Command::new("wl-copy").arg("--type").arg("text/html"), + Command::new("wl-copy").arg("--type").arg("text/html"), html.as_bytes(), "wl-copy", )