-
-
Notifications
You must be signed in to change notification settings - Fork 132
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(lib): use precise capturing on 1.82+ #435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for being so quick!
Please take a look at my comments.
As indicated by the CI, I think the new build dependency requires us to bump the MSRV to 1.74 |
I don't think this is actually caused by the new build-dependency (it only has |
actually correction, looking at the output of Line 11 in 491842d
|
I see, but I don't get why the
You are right, I was too quick on my conclusions :-) |
We could either raise the MSRV to 1.74, raise the CI to only test 1.74 or downgrade predicates to something that supports 1.70 |
I think the issue is actually the CI doesn't use For the sake of simplicity, we can just bump to 1.74 here. |
Cargo.toml
Outdated
@@ -30,7 +33,7 @@ rust-version.workspace = true | |||
version.workspace = true | |||
|
|||
[package.metadata] | |||
msrv = "1.70.0" # Needed to duplicate, because cargo-msrv does not support workspace | |||
msrv = "1.70.0" # Needed to duplicate, because cargo-msrv does not support workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to also update this field
Looks all good @indietyp, thanks! |
Fixes #434 by conditionally adding
+ use<'s>
to the implementation of the callback, but only if on 1.82+Additionally it adds tests for the MSRV and 1.82 to the CI.