Skip to content

chore(fs-util): remove redundant tmp_path clone#19003

Merged
mattsse merged 2 commits intoparadigmxyz:mainfrom
sky-coderay:fs-util-no-tmp-clone
Oct 16, 2025
Merged

chore(fs-util): remove redundant tmp_path clone#19003
mattsse merged 2 commits intoparadigmxyz:mainfrom
sky-coderay:fs-util-no-tmp-clone

Conversation

@sky-coderay
Copy link
Contributor

The error branch of atomic_write_file returns immediately, so tmp_path never flows past that point; dropping the clone keeps behavior identical while avoiding an unnecessary PathBuf allocation.

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 16, 2025
@mattsse mattsse added this pull request to the merge queue Oct 16, 2025
Merged via the queue into paradigmxyz:main with commit 5beeaed Oct 16, 2025
40 of 41 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Oct 16, 2025
emhane pushed a commit to op-rs/op-reth that referenced this pull request Oct 20, 2025
emhane pushed a commit to op-rs/op-reth that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants