diff --git a/turbopack/crates/turbo-tasks-fs/src/lib.rs b/turbopack/crates/turbo-tasks-fs/src/lib.rs index 82cf94fdb6f21..a7e8ed07320a3 100644 --- a/turbopack/crates/turbo-tasks-fs/src/lib.rs +++ b/turbopack/crates/turbo-tasks-fs/src/lib.rs @@ -735,7 +735,7 @@ impl FileSystem for DiskFileSystem { f.set_permissions(file.meta.permissions.into()).await?; #[cfg(feature = "write_version")] { - let mut full_path = full_path; + let mut full_path = full_path.into_owned(); let hash = hash_xxh3_hash64(file); let ext = full_path.extension(); let ext = if let Some(ext) = ext {