From e3c5b8ac1c659c555da64d03fc39a39b773c94bc Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Fri, 7 Jun 2024 13:29:06 -0600 Subject: [PATCH] state.rs nit --- kinode/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kinode/src/state.rs b/kinode/src/state.rs index 9ca75ba8..819f6cd3 100644 --- a/kinode/src/state.rs +++ b/kinode/src/state.rs @@ -404,8 +404,8 @@ async fn bootstrap( let our_drive_name = [package_name, package_publisher].join(":"); let pkg_path = format!("{}/vfs/{}/pkg", &home_directory_path, &our_drive_name); // delete anything currently residing in the pkg folder - let pkg_path = std::path::PathBuf::from(pkg_path); - if pkg_path.exists() { + let pkg_path_buf = std::path::PathBuf::from(&pkg_path); + if pkg_path_buf.exists() { fs::remove_dir_all(&pkg_path).await?; } fs::create_dir_all(&pkg_path)