Skip to content

test: fix clippy issue with tempfile::TempDir::into_path()#84

Merged
dongsupark merged 2 commits intomainfrom
dongsu/fix-clippy-tempdir
Aug 12, 2025
Merged

test: fix clippy issue with tempfile::TempDir::into_path()#84
dongsupark merged 2 commits intomainfrom
dongsu/fix-clippy-tempdir

Conversation

@dongsupark
Copy link
Copy Markdown
Member

Fix a clippy warning with Rust 1.88+.

warning: use of deprecated method `tempfile::TempDir::into_path`: use TempDir::keep()
  --> test/crau_verify.rs:41:39
   |
41 |     let tmpdir = tempfile::tempdir()?.into_path();
   |                                       ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: `ue-rs` (bin "crau_verify") generated 1 warning

Fix a clippy warning with Rust 1.88+.

warning: use of deprecated method `tempfile::TempDir::into_path`: use TempDir::keep()
  --> test/crau_verify.rs:41:39
   |
41 |     let tmpdir = tempfile::tempdir()?.into_path();
   |                                       ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: `ue-rs` (bin "crau_verify") generated 1 warning

Signed-off-by: Dongsu Park <dongsu@dpark.io>
@dongsupark dongsupark requested a review from a team as a code owner August 12, 2025 10:53
Since the TempDir::into_path() was deprecated since tempfile 3.20, it is
necessary to update the particular crate in this PR.

Signed-off-by: Dongsu Park <dongsu@dpark.io>
@dongsupark dongsupark merged commit c0a2b97 into main Aug 12, 2025
4 checks passed
@dongsupark dongsupark deleted the dongsu/fix-clippy-tempdir branch August 12, 2025 13:11
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 26, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 26, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 26, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 26, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 27, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 27, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Sep 30, 2025
cnd4 pushed a commit to cnd4/flatcar-scripts that referenced this pull request Oct 3, 2025
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.

3 participants