Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthowen committed Feb 24, 2024
1 parent 17d8c7c commit fc40857
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/system/infos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ impl Infos {

#[cfg(target_os = "windows")]
{
let windows_version: String = self
.sysinfo_obj
.os_version()
let windows_version: String = System::os_version()
.unwrap_or_default()
.split(' ')
.collect::<Vec<&str>>()[0]
Expand Down Expand Up @@ -938,9 +936,7 @@ impl Infos {
pub fn get_de(&self) -> (String, String) {
#[cfg(target_os = "windows")]
{
let windows_version: String = self
.sysinfo_obj
.os_version()
let windows_version: String = System::os_version()
.unwrap_or_default()
.split(' ')
.collect::<Vec<&str>>()[0]
Expand Down

0 comments on commit fc40857

Please sign in to comment.