-
Notifications
You must be signed in to change notification settings - Fork 190
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
Doesn't work correctly when entries are collected into a Vec #344
Comments
As the docs state in the description of the This isn't a bug, it's expected behavior. |
In my case, tar always read file's content as empty. For example, when I save the content as
So I guess it's not a problem to use collect, but I think there are some problem with in-memory source? -- edited Nevermind my case, it become ok when I use for-loop instead of collect. |
I still think this should be caught at compile time somehow. Maybe an entry could hold a mutable reference to the associated entries list, so grabbing the next entry will alert the borrow checker? Also, maybe this should be mentioned in the documentation more prominently. The pages for Entry and Entries do not mention this. |
Steps to reproduce
reproduce.bash
Expected behavior
It prints the content of the files correctly.
Actual behavior
It prints empty strings as content.
The text was updated successfully, but these errors were encountered: