diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2020-12-22 13:17:10 +0100 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2020-12-22 13:17:10 +0100 |
commit | c19567e59b8b9baa5829325cfb4f30da95026c52 (patch) | |
tree | 6daffb459b01ed9269f09e59395d276166b1943f /src/clipboard.rs | |
parent | 6fcbb99fafd8df81a696496ae241d9217ce1a948 (diff) |
fix rust_analyzer choking on local `use`
Diffstat (limited to 'src/clipboard.rs')
-rw-r--r-- | src/clipboard.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/clipboard.rs b/src/clipboard.rs index 7270d89b..8b56e3e9 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -1,12 +1,10 @@ -use anyhow::Result; +use anyhow::{anyhow, Result}; #[cfg(target_os = "linux")] use std::ffi::OsStr; use std::io::Write; use std::process::{Command, Stdio}; fn execute_copy_command(command: Command, text: &str) -> Result<()> { - use anyhow::anyhow; - let mut command = command; let mut process = command |