From 1bab64ec485248e244d5c2f40390ffb734f7da0a Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sat, 13 Apr 2024 14:24:23 +0100 Subject: [PATCH] Update mod.rs --- src/image/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/image/mod.rs b/src/image/mod.rs index 571e10c78a..679e78190d 100644 --- a/src/image/mod.rs +++ b/src/image/mod.rs @@ -231,6 +231,8 @@ impl From<&str> for Os { "aix" => Os::AIX, "android" => Os::Android, "darwin" => Os::Darwin, + // std::env::consts::OS returns "macos" instead of darwin + "macos" => Os::Darwin, "dragonfly" => Os::DragonFlyBSD, "freebsd" => Os::FreeBSD, "hurd" => Os::Hurd,