Skip to content

Commit

Permalink
Fix clippy warnings on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Apr 16, 2020
1 parent 1e43dc1 commit 0731a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ fn get_desktop_environment() -> DesktopEnvironment {
// XDG_CURRENT_DESKTOP is the newest standard circa 2012.
if let Ok(xdg_current_desktop) = env::var("XDG_CURRENT_DESKTOP") {
// It could have multiple values separated by colon in priority order.
for value in xdg_current_desktop.split(":") {
for value in xdg_current_desktop.split(':') {
let value = value.trim();
if value.len() == 0 {
if value.is_empty() {
continue;
}
if value == "Unity" {
Expand Down

0 comments on commit 0731a64

Please sign in to comment.