Remove unused import on unix-family systems
This commit is contained in:
parent
0bb3fac61b
commit
c75e684f5b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::message::Message;
|
use crate::message::Message;
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::Result;
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
|
|
@ -18,6 +18,7 @@ pub async fn browse_url(url: &String) {
|
||||||
|
|
||||||
#[cfg(not(target_family = "unix"))]
|
#[cfg(not(target_family = "unix"))]
|
||||||
pub async fn browse_url_impl(_url: &String) -> Result<()> {
|
pub async fn browse_url_impl(_url: &String) -> Result<()> {
|
||||||
|
use anyhow::anyhow;
|
||||||
Err(anyhow!(
|
Err(anyhow!(
|
||||||
"Opening a browser is not supported on this platform"
|
"Opening a browser is not supported on this platform"
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue