Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Feb 9, 2025
1 parent b2bfe22 commit 03fea2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ pub fn edit(contents: &str, help: &str) -> Result<String> {

fn contains_shell_metacharacters(cmd: &std::ffi::OsStr) -> bool {
cmd.to_str()
.map_or(false, |s| s.contains(&[' ', '$', '\'', '"'][..]))
.is_some_and(|s| s.contains(&[' ', '$', '\'', '"'][..]))
}

0 comments on commit 03fea2f

Please sign in to comment.