summaryrefslogtreecommitdiff
path: root/cli/module_loader.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-28 23:40:40 -0400
committerGitHub <noreply@github.com>2024-05-28 23:40:40 -0400
commita8923534ed02e9e4ba3bb277db6e61a208c64125 (patch)
treea745ab2d0d57df6c21486181a21e9cbeeadd9532 /cli/module_loader.rs
parent14a74600de6f1c206ffe4750f6cb6da59657db8e (diff)
chore: set lockfile as having no content changes after write (#24023)
Slight perf regression when updating deno_lockfile in https://github.com/denoland/deno/pull/23979
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r--cli/module_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs
index 9be1ceff2..593868687 100644
--- a/cli/module_loader.rs
+++ b/cli/module_loader.rs
@@ -175,7 +175,7 @@ impl ModuleLoadPreparer {
// write the lockfile if there is one
if let Some(lockfile) = &self.lockfile {
- write_lockfile_if_has_changes(&lockfile.lock())?;
+ write_lockfile_if_has_changes(&mut lockfile.lock())?;
}
drop(_pb_clear_guard);