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

Allow the retr reader to return something other than unit #61

Closed
wants to merge 2 commits into from

Conversation

tomverran
Copy link

Tiny change but as a Rust newbie I found it was easier to return resources I created in a closure processing the FTP stream than it was to create resources outside & have to thread mutable references through various scopes.

I am assuming this will be totally backwards compatible thanks to type inference but let me know if I'm mistaken.

@tomverran
Copy link
Author

Just noticed the same change is implemented in #59 !

I'm happy to wait for that & close this but I'll leave this open for you to decide.

@tomverran
Copy link
Author

Closing this as I added an unrelated commit which is not backward compatible

@tomverran tomverran closed this Feb 26, 2017
@matt2xu
Copy link
Contributor

matt2xu commented Feb 27, 2017

cc @mattnenterprise can you merge #59 please?

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.

None yet

2 participants