Return None in autodetect on cargo feature on other platforms (#3445)
This commit is contained in:
1 parent
61b55c9d37
commit
d20f85b318
1 file changed
+5
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user