Skip to content

Conversation

@MarijnS95
Copy link
Contributor

Noticed immediately after #3317 was merged:

Dynamic dispatch is not (always) needed here, and this way an owned File can trivially be moved into the function again like before without forcing a mutable borrow. Noting that Write is even implemented on &File, which can now be more easily passed without having it under mut.

…Write`

Dynamic dispatch is not (always) needed here, and this way an owned
`File` can trivially be moved into the function again like before
without forcing a mutable borrow.  Noting that `Write` is even
implemented on `&File`, which can now be more easily passed without
having it under `mut`.
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.

1 participant