hotfix: mismatched types
This commit is contained in:
parent
8f723df25b
commit
567c23922c
1 changed files with 5 additions and 4 deletions
|
@ -41,14 +41,15 @@ fn main() {
|
||||||
|
|
||||||
let kernel = System::kernel_version().unwrap_or(String::from("N/A"));
|
let kernel = System::kernel_version().unwrap_or(String::from("N/A"));
|
||||||
let pretty = distro();
|
let pretty = distro();
|
||||||
let wm: &str;
|
|
||||||
|
let wm: String;
|
||||||
|
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
wm = "Aero";
|
wm = "Aero".to_string();
|
||||||
} else if cfg!(unix) {
|
} else if cfg!(unix) {
|
||||||
wm = var("XDG_CURRENT_DESKTOP");
|
wm = var("XDG_CURRENT_DESKTOP").unwrap();
|
||||||
} else {
|
} else {
|
||||||
wm = "N/A";
|
wm = "N/A".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
println!();
|
println!();
|
||||||
|
|
Loading…
Reference in a new issue