File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/rust-analyzer/src/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2003,9 +2003,9 @@ fn run_rustfmt(
2003
2003
// approach: if the command name contains a path seperator, join it with the workspace root.
2004
2004
// however, if the path is absolute, joining will result in the absolute path being preserved.
2005
2005
// as a fallback, rely on $PATH-based discovery.
2006
- let cmd_path = if cfg ! ( windows) && command. contains ( & [ std:: path:: MAIN_SEPARATOR_STR , '/' ] ) {
2006
+ let cmd_path = if cfg ! ( windows) && command. contains ( & [ std:: path:: MAIN_SEPARATOR , '/' ] ) {
2007
2007
spec. workspace_root . join ( cmd) . into ( )
2008
- } else if command. contains ( std:: path:: MAIN_SEPARATOR_STR ) {
2008
+ } else if command. contains ( std:: path:: MAIN_SEPARATOR ) {
2009
2009
spec. workspace_root . join ( cmd) . into ( )
2010
2010
} else {
2011
2011
cmd
You can’t perform that action at this time.
0 commit comments