mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Use TempDir::keep instead of deprecated into_path in entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
e223906137
commit
abbee83ec4
1 changed files with 2 additions and 2 deletions
|
@ -527,7 +527,7 @@ fn do_install_fetches(
|
||||||
|
|
||||||
if no_cleanup {
|
if no_cleanup {
|
||||||
// Consume temp_dir without removing it from fs.
|
// Consume temp_dir without removing it from fs.
|
||||||
let _ = temp_dir.into_path();
|
let _ = temp_dir.keep();
|
||||||
} else {
|
} else {
|
||||||
temp_dir.close().unwrap_or_else(|err| {
|
temp_dir.close().unwrap_or_else(|err| {
|
||||||
warn!("Failed to clean up some resources: {err}");
|
warn!("Failed to clean up some resources: {err}");
|
||||||
|
@ -577,7 +577,7 @@ fn do_install_fetches_continue_on_failure(
|
||||||
|
|
||||||
if no_cleanup {
|
if no_cleanup {
|
||||||
// Consume temp_dir without removing it from fs.
|
// Consume temp_dir without removing it from fs.
|
||||||
let _ = temp_dir.into_path();
|
let _ = temp_dir.keep();
|
||||||
} else {
|
} else {
|
||||||
temp_dir.close().unwrap_or_else(|err| {
|
temp_dir.close().unwrap_or_else(|err| {
|
||||||
warn!("Failed to clean up some resources: {err}");
|
warn!("Failed to clean up some resources: {err}");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue