Return None in autodetect on cargo feature on other platforms (#3445)

This commit is contained in:
Rhaskia authored and GitHub committed 2024-12-24 16:10:18 -05:00
1 parent 61b55c9d37
commit d20f85b318
1 file changed
+5
+5
View File
@@ -173,6 +173,11 @@ impl Platform {
{
Some(Platform::Linux)
}
// Possibly need a something for freebsd? Maybe default to Linux?
#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
{
None
}
}
"mobile" => None,
"liveview" => Some(Platform::Liveview),