Fix some clippy lints

pull/795/head
Wilfred Hughes 2024-12-19 21:29:31 +07:00
parent f68948ffeb
commit 649c557708
2 changed files with 2 additions and 2 deletions

@ -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))
}
}

@ -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}\"]")
}
};