Skip to content

Commit

Permalink
Cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Apr 6, 2024
1 parent 8b8bbf6 commit 1ad8ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/post_login/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ fn parse_desktop_entry(path: &Path, _: &Config) -> Result<(String, String), Stri
.iter()
.find(|g| g.name() == "Desktop Entry")
else {
return Err(format!("file does not contain 'Desktop Entry' group"));
return Err("file does not contain 'Desktop Entry' group".to_string());
};

let Some(exec) = desktop_entry.get("Exec") else {
return Err(format!("'Exec' key cannot be found"));
return Err("'Exec' key cannot be found".to_string());
};

let exec = match exec.value().as_string() {
Expand Down

0 comments on commit 1ad8ba4

Please # to comment.