Skip to content

Conversation

@sdroege
Copy link
Member

@sdroege sdroege commented Nov 1, 2021

With edition 2021 the closures are only borrowing what they have to, so
here in this case it didn't actually borrow the helper as it was not
actually used inside the closure. With that, it was not dropped when the
main context channel was dropped and the main loop was never quit.

With edition 2021 the closures are only borrowing what they have to, so
here in this case it didn't actually borrow the helper as it was not
actually used inside the closure. With that, it was not dropped when the
main context channel was dropped and the main loop was never quit.
@sdroege
Copy link
Member Author

sdroege commented Nov 1, 2021

Reported this also here: rust-lang/rust#90465 . Just in case this was not an intentional change.

@sdroege sdroege merged commit 0e8c135 into gtk-rs:master Nov 1, 2021
@sdroege sdroege deleted the partial-closure-borrowing-fixup branch November 1, 2021 08:30
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