Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
robiot committed Dec 14, 2021
1 parent cb00fd3 commit fa8eb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ pub fn parse_cmd(token: String, status: i32) -> Result<Vec<(tokens::ParseCmdToke
let globs_vec: Vec<PathBuf> = globs.flatten().collect();

// If there is none
if globs_vec.len() > 0 && globs_vec[0].display().to_string() != "." {
if !globs_vec.is_empty() && globs_vec[0].display().to_string() != "." {
for entry in globs_vec {
let entry_string = entry.display().to_string();
if !entry_string.starts_with("/") {
if !entry_string.starts_with('/') {
result_part
.push(format!("./{}", entry.display().to_string()));
} else {
Expand Down

0 comments on commit fa8eb62

Please sign in to comment.