mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Set file path for file lock in mod cargo_config
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
d224e820be
commit
3e5f41e27e
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ impl Config {
|
|||
fn inner(path: &Path) -> Result<Config, ConfigLoadError> {
|
||||
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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue