Skip to content

Commit

Permalink
Fix some clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Dec 20, 2024
1 parent f68948f commit 649c557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ fn common_path_suffix(lhs_path: &Path, rhs_path: &Path) -> Option<String> {
None
} else {
common_components.reverse();
Some(common_components.join(&std::path::MAIN_SEPARATOR.to_string()))
Some(common_components.join(std::path::MAIN_SEPARATOR_STR))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/parse/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ fn print_as_dot_<'a>(nodes: &[&'a Syntax<'a>]) {
}
}
Atom { content, .. } => {
let content = content.replace("\"", "\\\"");
let content = content.replace('\"', "\\\"");
format!("[label=\"{content}\"]")
}
};
Expand Down

0 comments on commit 649c557

Please sign in to comment.