Skip to content

Commit 84cb871

Browse files
committed
if windows: no supported image backend
1 parent 8035b97 commit 84cb871

File tree

1 file changed

+4
-0
lines changed
  • src/onefetch/image_backends

1 file changed

+4
-0
lines changed

src/onefetch/image_backends/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ pub fn get_best_backend() -> Option<Box<dyn ImageBackend>> {
2222
}
2323

2424
pub fn check_if_supported(backend_name: &str) -> Result<()> {
25+
26+
#[cfg(windows)]
27+
return Err(format!("{} image backend is not supported", backend_name));
28+
2529
match backend_name {
2630
"kitty" => {
2731
if !kitty::KittyBackend::supported() {

0 commit comments

Comments
 (0)