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

fs_utf8/Dir: impl AsRef<crate::fs::Dir> #364

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

cgwalters
Copy link
Contributor

This allows an API like:

fn foo(d: impl AsRef<Dir>) {
    ...
}

to accept either a Dir or a DirUtf8. I don't know that I'll do this much, but I think it can make sense.

This allows an API like:
```
fn foo(d: impl AsRef<Dir>) {
    ...
}
```

to accept either a `Dir` or a `DirUtf8`. I don't know that
I'll do this much, but I think it can make sense.
@sunfishcode
Copy link
Member

Seems reasonable.

@sunfishcode sunfishcode merged commit 95e84f4 into bytecodealliance:main Aug 29, 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