Skip to content

Commit 58d2fe2

Browse files
committed
revert unrelated change
1 parent 3efbeac commit 58d2fe2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/clipboard.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ fn exec_copy_with_args(
2626
.spawn()
2727
.map_err(|e| anyhow!("`{command:?}`: {e:?}"))?;
2828

29-
let mut stdin = process
29+
process
3030
.stdin
31-
.take()
32-
.ok_or_else(|| anyhow!("`{command:?}`"))?;
33-
34-
stdin
31+
.as_mut()
32+
.ok_or_else(|| anyhow!("`{command:?}`"))?
3533
.write_all(text.as_bytes())
3634
.map_err(|e| anyhow!("`{command:?}`: {e:?}"))?;
37-
drop(stdin);
3835

3936
let out = process
4037
.wait_with_output()

0 commit comments

Comments
 (0)