mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Use block_in_place
for loading metadata
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6716d75607
commit
4dae214af3
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
|
||||||
// Load metadata
|
// Load metadata
|
||||||
let metadata = if !custom_install_path {
|
let metadata = if !custom_install_path {
|
||||||
debug!("Reading binstall/crates-v1.json");
|
debug!("Reading binstall/crates-v1.json");
|
||||||
Some(metafiles::binstall_v1::Records::load()?)
|
Some(block_in_place(metafiles::binstall_v1::Records::load)?)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue