style(path): fix formatting

This commit is contained in:
Federico Terzi 2021-10-06 18:40:31 +02:00
parent 3fd8bfccab
commit c10dab9e80

View File

@ -77,7 +77,8 @@ pub fn resolve_paths(
packages_dir packages_dir
}; };
let is_portable_mode = is_portable_mode() && force_config_dir.is_none() && force_runtime_dir.is_none(); let is_portable_mode =
is_portable_mode() && force_config_dir.is_none() && force_runtime_dir.is_none();
Paths { Paths {
config: config_dir, config: config_dir,
@ -312,9 +313,9 @@ fn is_legacy_runtime_dir(path: &Path) -> bool {
for candidate in LEGACY_RUNTIME_DIR_CANDIDATES_FILE { for candidate in LEGACY_RUNTIME_DIR_CANDIDATES_FILE {
let candidate_path = path.join(candidate); let candidate_path = path.join(candidate);
if candidate_path.is_file() { if candidate_path.is_file() {
return true return true;
} }
} }
false false
} }