Fix warning on linux

This commit is contained in:
John Doty 2022-10-09 08:44:33 -07:00
parent d4a8b041dd
commit e50d4ba943

View file

@ -1,8 +1,9 @@
use crate::message::PortDesc;
use anyhow::{bail, Result};
use anyhow::Result;
#[cfg(not(target_os = "linux"))]
pub fn get_entries() -> Result<Vec<PortDesc>> {
use anyhow::bail;
bail!("Not supported on this operating system");
}