hotfix: mismatched types

This commit is contained in:
Muhammad Nauman Raza 2024-03-24 14:13:36 +00:00
parent 8f723df25b
commit 567c23922c
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -41,14 +41,15 @@ fn main() {
let kernel = System::kernel_version().unwrap_or(String::from("N/A"));
let pretty = distro();
let wm: &str;
let wm: String;
if cfg!(windows) {
wm = "Aero";
wm = "Aero".to_string();
} else if cfg!(unix) {
wm = var("XDG_CURRENT_DESKTOP");
wm = var("XDG_CURRENT_DESKTOP").unwrap();
} else {
wm = "N/A";
wm = "N/A".to_string();
}
println!();