Skip to content

Commit

Permalink
Fix for clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Jan 24, 2021
1 parent 6d2270a commit a728dce
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 @@ -108,7 +108,7 @@ fn get_desktop_environment() -> DesktopEnvironment {
// gnome-fallback sessions set XDG_CURRENT_DESKTOP to Unity
// DESKTOP_SESSION can be gnome-fallback or gnome-fallback-compiz
if let Ok(desktop_session) = env::var("DESKTOP_SESSION") {
if desktop_session.find("gnome-fallback").is_some() {
if desktop_session.contains("gnome-fallback") {
return DesktopEnvironment::Gnome;
}
}
Expand Down Expand Up @@ -160,7 +160,7 @@ fn get_desktop_environment() -> DesktopEnvironment {
}
_ => {}
}
if desktop_session.find("xfce").is_some() {
if desktop_session.contains("xfce") {
return DesktopEnvironment::Xfce;
}
}
Expand Down

0 comments on commit a728dce

Please sign in to comment.