Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tempfile: Delegate tempdir::new to base version #360

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

cgwalters
Copy link
Contributor

I was looking at the code here for an unrelated reason, and realized that there's no reason for us to duplicate the code.

Because a Dir instance doesn't have a name accessible to the calling code, we just delegate to the non-UTF8 base version. In some presumably very unusual situations the tempdir may have a non-UTF8 name, but that's fine.

I was looking at the code here for an unrelated reason,
and realized that there's no reason for us to duplicate the code.

Because a Dir instance doesn't have a name accessible to the calling
code, we just delegate to the non-UTF8 base version. In some presumably
very unusual situations the tempdir may have a non-UTF8 name,
but that's fine.

Signed-off-by: Colin Walters <[email protected]>
@sunfishcode
Copy link
Member

Nice!

@sunfishcode sunfishcode merged commit 76f3449 into bytecodealliance:main Sep 24, 2024
21 of 22 checks passed
@sunfishcode
Copy link
Member

This is now released in cap-std 3.3.0.

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