From c19567e59b8b9baa5829325cfb4f30da95026c52 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 22 Dec 2020 13:17:10 +0100 Subject: [PATCH] fix rust_analyzer choking on local `use` --- src/clipboard.rs | 4 +--- 1 file changed, 1 insertion(+), 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