From c75e684f5bdc466bc132637bca2d2176565f1c1e Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 19 Dec 2022 19:09:29 -0800 Subject: [PATCH] Remove unused import on unix-family systems --- src/browse/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browse/mod.rs b/src/browse/mod.rs index ab93c42..88348d8 100644 --- a/src/browse/mod.rs +++ b/src/browse/mod.rs @@ -1,5 +1,5 @@ use crate::message::Message; -use anyhow::{anyhow, Result}; +use anyhow::Result; use tokio::sync::mpsc; #[cfg(target_family = "unix")] @@ -18,6 +18,7 @@ pub async fn browse_url(url: &String) { #[cfg(not(target_family = "unix"))] pub async fn browse_url_impl(_url: &String) -> Result<()> { + use anyhow::anyhow; Err(anyhow!( "Opening a browser is not supported on this platform" ))