fix(clipboard): fix clippy warning

This commit is contained in:
Federico Terzi 2021-12-13 23:53:09 +01:00
parent 243c6604f8
commit d4d7609dd8

View File

@ -135,7 +135,7 @@ impl Clipboard for WaylandFallbackClipboard {
file.read_to_end(&mut data)?; file.read_to_end(&mut data)?;
self.invoke_command_with_timeout( 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, &data,
"wl-copy", "wl-copy",
) )
@ -148,7 +148,7 @@ impl Clipboard for WaylandFallbackClipboard {
_: &ClipboardOperationOptions, _: &ClipboardOperationOptions,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
self.invoke_command_with_timeout( 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(), html.as_bytes(),
"wl-copy", "wl-copy",
) )