fix(clipboard): fix clippy warning
This commit is contained in:
parent
243c6604f8
commit
d4d7609dd8
|
@ -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",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user