@@ -82,22 +82,22 @@ impl OsType {
8282
8383/// Returns the operating system type.
8484#[ must_use]
85- pub fn os_type ( ) -> OsType {
85+ fn os_type ( ) -> OsType {
8686 OsType :: this_machine ( )
8787}
8888
8989/// Returns the operating system name.
90- pub fn os_name ( ) -> Result < String , UnavailableReason > {
90+ fn os_name ( ) -> Result < String , UnavailableReason > {
9191 System :: name ( ) . ok_or ( UnavailableReason :: DetectionFailed )
9292}
9393
9494/// Returns the operating system version.
95- pub fn os_version ( ) -> Result < String , UnavailableReason > {
95+ fn os_version ( ) -> Result < String , UnavailableReason > {
9696 System :: os_version ( ) . ok_or ( UnavailableReason :: DetectionFailed )
9797}
9898
9999/// Returns the Linux kernel version.
100- pub fn linux_kernel_version ( ) -> Result < String , UnavailableReason > {
100+ fn linux_kernel_version ( ) -> Result < String , UnavailableReason > {
101101 #[ cfg( target_os = "linux" ) ]
102102 {
103103 System :: kernel_version ( ) . ok_or_else ( || UnavailableReason :: DetectionFailed )
@@ -110,7 +110,7 @@ pub fn linux_kernel_version() -> Result<String, UnavailableReason> {
110110}
111111
112112/// Returns the disk encryption status, preferably for the system volume.
113- pub fn disk_encryption_status ( ) -> Result < bool , UnavailableReason > {
113+ fn disk_encryption_status ( ) -> Result < bool , UnavailableReason > {
114114 #[ cfg( target_os = "macos" ) ]
115115 {
116116 macos:: disk_encryption_status ( )
@@ -128,7 +128,7 @@ pub fn disk_encryption_status() -> Result<bool, UnavailableReason> {
128128}
129129
130130/// Returns the antivirus status.
131- pub fn anti_virus_status ( ) -> Result < bool , UnavailableReason > {
131+ fn anti_virus_status ( ) -> Result < bool , UnavailableReason > {
132132 #[ cfg( windows) ]
133133 {
134134 windows:: anti_virus_status ( )
@@ -141,7 +141,7 @@ pub fn anti_virus_status() -> Result<bool, UnavailableReason> {
141141}
142142
143143/// Checks whether the computer is part of a domain.
144- pub fn part_of_domain ( ) -> Result < bool , UnavailableReason > {
144+ fn part_of_domain ( ) -> Result < bool , UnavailableReason > {
145145 #[ cfg( windows) ]
146146 {
147147 windows:: part_of_domain ( )
0 commit comments