We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0973d78 commit 5522357Copy full SHA for 5522357
crates/rust-analyzer/src/handlers/request.rs
@@ -2003,9 +2003,9 @@ fn run_rustfmt(
2003
// approach: if the command name contains a path seperator, join it with the workspace root.
2004
// however, if the path is absolute, joining will result in the absolute path being preserved.
2005
// as a fallback, rely on $PATH-based discovery.
2006
- let cmd_path = if cfg!(windows) && command.contains(&[std::path::MAIN_SEPARATOR_STR, '/']) {
+ let cmd_path = if cfg!(windows) && command.contains(&[std::path::MAIN_SEPARATOR, '/']) {
2007
spec.workspace_root.join(cmd).into()
2008
- } else if command.contains(std::path::MAIN_SEPARATOR_STR) {
+ } else if command.contains(std::path::MAIN_SEPARATOR) {
2009
2010
} else {
2011
cmd
0 commit comments