fix: linux build
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use crate::profile::Profile;
|
||||
use anyhow::{Result, anyhow};
|
||||
use anyhow::Result;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub struct DisplayInfo {
|
||||
@ -8,13 +8,15 @@ pub struct DisplayInfo {
|
||||
target_settings: displayz::DisplaySettings
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
pub async fn prepare_display(p: &Profile) -> Result<()> {
|
||||
pub async fn prepare_display(_: &Profile) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub async fn prepare_display(p: &Profile) -> Result<Option<DisplayInfo>> {
|
||||
use anyhow::anyhow;
|
||||
use displayz::{query_displays, Orientation, Resolution};
|
||||
|
||||
let display_name = p.get_str("display", "default");
|
||||
|
Reference in New Issue
Block a user