From 3e5f41e27e4e6dc3751455e55019e4be0846ff58 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sat, 22 Feb 2025 22:57:04 +1100 Subject: [PATCH] Set file path for file lock in mod cargo_config Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-manifests/src/cargo_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/binstalk-manifests/src/cargo_config.rs b/crates/binstalk-manifests/src/cargo_config.rs index 6bc36d96..dc9985dc 100644 --- a/crates/binstalk-manifests/src/cargo_config.rs +++ b/crates/binstalk-manifests/src/cargo_config.rs @@ -138,7 +138,7 @@ impl Config { fn inner(path: &Path) -> Result { match File::open(path) { Ok(file) => { - let file = FileLock::new_shared(file)?; + let file = FileLock::new_shared(file)?.set_file_path(path); // Any regular file must have a parent dir Config::load_from_reader(file, path.parent().unwrap()) }