Skip to content

Commit

Permalink
types.rs: update file
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Apr 10, 2024
1 parent 06dfef2 commit d7d97c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pub enum PlatformType {
SunOs,
Windows,
Android,
FreeBSD,
NetBSD,
OpenBSD,
FreeBsd,
NetBsd,
OpenBsd,
}

impl fmt::Display for PlatformType {
Expand Down Expand Up @@ -76,17 +76,17 @@ impl PlatformType {
Self::Android
}

#[cfg(any(target_os = "freebsd",))]
#[cfg(any(target_os = "freebsd"))]
pub fn current() -> Self {
Self::FreeBSD
}

#[cfg(any(target_os = "netbsd",))]
#[cfg(any(target_os = "netbsd"))]
pub fn current() -> Self {
Self::NetBSD
}

#[cfg(any(target_os = "openbsd",))]
#[cfg(any(target_os = "openbsd"))]
pub fn current() -> Self {
Self::OpenBSD
}
Expand Down

0 comments on commit d7d97c1

Please sign in to comment.