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: misc small API tweaks #3315

Merged
merged 2 commits into from
Dec 22, 2020
Merged

fs: misc small API tweaks #3315

merged 2 commits into from
Dec 22, 2020

Conversation

carllerche
Copy link
Member

@carllerche carllerche commented Dec 22, 2020

I did a scan of fs and found a few minor things to change.

@carllerche carllerche added this to the v1.0 milestone Dec 22, 2020
pub async fn write<C: AsRef<[u8]> + Unpin>(path: impl AsRef<Path>, contents: C) -> io::Result<()> {
pub async fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> io::Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this even + Unpin in the first place?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea... probably accident / left over.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-fs Module: tokio/fs labels Dec 22, 2020
@carllerche carllerche merged commit 2ee9520 into master Dec 22, 2020
@carllerche carllerche deleted the tweak-fs-apis branch December 22, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-fs Module: tokio/fs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants