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`.
@emilio emilio added this pull request to the merge queue Dec 16, 2025
Merged via the queue into rust-lang:main with commit 7c38446 Dec 16, 2025
51 checks passed
@MarijnS95 MarijnS95 deleted the bindings-write-impl branch December 16, 2025 09:39
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