Skip to content

Commit d8d0ff7

Browse files
committed
fix windows build
1 parent 84895ab commit d8d0ff7

File tree

1 file changed

+2
-1
lines changed
  • src/onefetch/image_backends

1 file changed

+2
-1
lines changed

Diff for: src/onefetch/image_backends/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ pub fn get_best_backend() -> Option<Box<dyn ImageBackend>> {
2323

2424
pub fn check_if_supported(backend_name: &str) -> Result<()> {
2525
#[cfg(windows)]
26-
return Err(format!("{} image backend is not supported", backend_name));
26+
return Err(format!("{} image backend is not supported", backend_name).into());
2727

28+
#[cfg(not(windows))]
2829
match backend_name {
2930
"kitty" => {
3031
if !kitty::KittyBackend::supported() {

0 commit comments

Comments
 (0)