Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 22, 2020
1 parent 84895ab commit d8d0ff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/onefetch/image_backends/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ pub fn get_best_backend() -> Option<Box<dyn ImageBackend>> {

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() {
Expand Down

0 comments on commit d8d0ff7

Please sign in to comment.