From d8d0ff78da8e66ca3e9e8e34b4e2861a9e65c75b Mon Sep 17 00:00:00 2001 From: o2sh Date: Thu, 22 Oct 2020 19:54:38 +0200 Subject: [PATCH] fix windows build --- src/onefetch/image_backends/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/onefetch/image_backends/mod.rs b/src/onefetch/image_backends/mod.rs index 62566bed7..0e3778bc5 100644 --- a/src/onefetch/image_backends/mod.rs +++ b/src/onefetch/image_backends/mod.rs @@ -23,8 +23,9 @@ 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)); + return Err(format!("{} image backend is not supported", backend_name).into()); + #[cfg(not(windows))] match backend_name { "kitty" => { if !kitty::KittyBackend::supported() {