mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-26 18:14:18 +02:00
Add PlatformType::current for android target
This commit is contained in:
parent
4a5410fd0b
commit
abbbbf01ed
1 changed files with 7 additions and 1 deletions
|
|
@ -68,6 +68,11 @@ impl PlatformType {
|
|||
Self::Windows
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
pub fn current() -> Self {
|
||||
Self::Android
|
||||
}
|
||||
|
||||
#[cfg(not(any(
|
||||
target_os = "linux",
|
||||
target_os = "macos",
|
||||
|
|
@ -75,7 +80,8 @@ impl PlatformType {
|
|||
target_os = "netbsd",
|
||||
target_os = "openbsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "windows"
|
||||
target_os = "windows",
|
||||
target_os = "android",
|
||||
)))]
|
||||
pub fn current() -> Self {
|
||||
Self::Other
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue