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 1.78 lints #2491

Merged
merged 2 commits into from
May 7, 2024
Merged

Fix 1.78 lints #2491

merged 2 commits into from
May 7, 2024

Conversation

itowlson
Copy link
Contributor

@itowlson itowlson commented May 6, 2024

I tried installing 1.78 to see if it fixed #2424 and no it doesn't but hoo boy is it mad about the precious clone()s.

It also started giving deprecation warnings on ./cargo/config, so I renamed that too. The warning says the new name works from Cargo 1.38 so should not be a problem for us on 1.74.

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson requested a review from rylev May 6, 2024 22:38
@itowlson
Copy link
Contributor Author

itowlson commented May 6, 2024

The changes in the LLM host component were because it was giving "never constructed" lints on the NoopLlmEngine, and if I featured that out I had to feature out a bunch of other things that only it used, and it seemed easier to put it into a mod and feature that out. If that fels too invasive, we could simply suppress the lint and not touch the rest of it - happy either way.

@itowlson itowlson enabled auto-merge May 7, 2024 03:09
@itowlson itowlson merged commit 7b8cd7f into fermyon:main May 7, 2024
17 checks passed
@lann
Copy link
Collaborator

lann commented May 10, 2024

It looks like the clone_from stuff is Controversial and might be punted out of the default checks: rust-lang/rust-clippy#12778

@itowlson
Copy link
Contributor Author

@lann I'd be delighted to revert it if there is consensus to do so. I'm not a fan of the readability.

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.

"Unknown lint: clippy::blocks_in_conditions" warning when clippying Spin source
3 participants