Skip to content

Use tempfile::TempDir::keep() instead of deprecated into_path() - #706

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
emmanuel-ferdman:master
Jun 11, 2025
Merged

Use tempfile::TempDir::keep() instead of deprecated into_path()#706
antoyo merged 1 commit into
rust-lang:masterfrom
emmanuel-ferdman:master

Conversation

@emmanuel-ferdman

Copy link
Copy Markdown
Contributor

PR Summary

The tempfile library has deprecated TempDir::into_path(), replacing it by TempDir::keep() starting version 3.3. It leads to the following warnings which you can find in the CI logs:

warning: use of deprecated method `tempfile::TempDir::into_path`: use TempDir::keep()
   --> src/lib.rs:211:38
    |
211 |             let temp_file = temp_dir.into_path().join("result.asm");

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@antoyo
antoyo merged commit acfb046 into rust-lang:master Jun 11, 2025
@antoyo

antoyo commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants