From 1c8df6a8dd8d11ff9df37cbc9af6b070ad305bcb Mon Sep 17 00:00:00 2001 From: Victor Aremu Date: Fri, 24 Nov 2023 15:06:21 +0100 Subject: [PATCH] chore: add mock implementation for other windows & linux --- libs/app-icon/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/app-icon/src/lib.rs b/libs/app-icon/src/lib.rs index 136fbb2..8d5748f 100644 --- a/libs/app-icon/src/lib.rs +++ b/libs/app-icon/src/lib.rs @@ -12,6 +12,16 @@ pub struct GetAppIconError { source: macos::request::GetIconError, } +#[cfg(target_os = "windows")] +pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> { + unimplemented!(); +} + +#[cfg(target_os = "linux")] +pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> { + unimplemented!(); +} + #[cfg(target_os = "macos")] pub fn get_icon(app_path: &Path, save_path: &Path, size: f64) -> Result<(), GetAppIconError> { macos::request::get_icon(app_path, save_path, size)?;