From 84cb871bd72c49f819f9702c8ea335d9798e20bc Mon Sep 17 00:00:00 2001 From: o2sh Date: Thu, 22 Oct 2020 19:44:31 +0200 Subject: [PATCH] if windows: no supported image backend --- src/onefetch/image_backends/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/onefetch/image_backends/mod.rs b/src/onefetch/image_backends/mod.rs index e06bfa3ad..6362101b3 100644 --- a/src/onefetch/image_backends/mod.rs +++ b/src/onefetch/image_backends/mod.rs @@ -22,6 +22,10 @@ pub fn get_best_backend() -> Option> { } pub fn check_if_supported(backend_name: &str) -> Result<()> { + + #[cfg(windows)] + return Err(format!("{} image backend is not supported", backend_name)); + match backend_name { "kitty" => { if !kitty::KittyBackend::supported() {