Skip to content

Commit 5a56880

Browse files
committed
style(dev): fix rustfmt in global install
1 parent a5f1d42 commit 5a56880

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/vite_global_cli/src/commands/env/global_install.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,11 @@ async fn materialize_symlinked_package_dir(node_modules_dir: &AbsolutePath) -> R
332332

333333
let package_dir_name =
334334
node_modules_dir.as_path().file_name().and_then(|name| name.to_str()).unwrap_or("package");
335-
let temp_dir = node_modules_dir.parent().expect("package dir should have a parent").as_path().join(
336-
format!(".{package_dir_name}-materialized"),
337-
);
335+
let temp_dir = node_modules_dir
336+
.parent()
337+
.expect("package dir should have a parent")
338+
.as_path()
339+
.join(format!(".{package_dir_name}-materialized"));
338340

339341
if temp_dir.as_path().exists() {
340342
std::fs::remove_dir_all(&temp_dir)?;

0 commit comments

Comments
 (0)