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

Fix Rust 1.71.0+ compatibility #130

Merged
merged 5 commits into from
Oct 29, 2023
Merged

Fix Rust 1.71.0+ compatibility #130

merged 5 commits into from
Oct 29, 2023

Conversation

haimgel
Copy link
Owner

@haimgel haimgel commented Oct 29, 2023

No description provided.

haimgel and others added 5 commits October 25, 2023 07:24
This boxing is not unneeded, it's actually
required by libusb on MacOS/Linux.

This reverts commit 9f4c4bb.
PnPDetectWindows structure cannot be freely copied/moved around because a pointer to self is stored in the created Window class.

This code was working in Rust prior to 1.70 apparently just because Rust optimized PnPDetectWindows:new in a way that did not cause the structure to be copied; that no longer works in Rust 1.71+
@haimgel haimgel self-assigned this Oct 29, 2023
@haimgel haimgel merged commit e13c471 into main Oct 29, 2023
6 checks passed
@haimgel haimgel deleted the fix-rust71-compat branch October 29, 2023 18:33
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

1 participant