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

adhoc: Fix Clippy lints in const-serialize etc. #3880

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gbutler69
Copy link

Fix the clippy lints that were preventing building:

  • const-serialize/src/lib.rs
  • core/src/nodes.rs
  • fullstack/src/serve_config.rs

Fix the clippy lints that were preventing building:

   * const-serialize/src/lib.rs
   * core/src/nodes.rs
   * fullstack/src/serve_config.rs
@gbutler69 gbutler69 requested a review from a team as a code owner March 15, 2025 14:49
@gbutler69
Copy link
Author

OK, the version of the compiler being used in CI doesn't like the std::ptr::fn_addr_eq(a as fn(), b as fn()). It seems that it was an unstable library feature for this version of the compiler. It has now been stabilized in the latest 1.85 compiler it seems and is needed to avoid the Clippy error on comparing pointers.

The lint for pointer comparison is only in 1.85. The solution
uses a mechanism that was only stabilized with 1.85. Instead
of using that solution, will just allow the lint on this
function for now. Once the MSRV of Dioxus is updated to 1.85
or above, this can be changed to use the recommeneded solution.
@gbutler69 gbutler69 changed the title adhox: Fix Clippy lints in const-serialize etc. adhoc: Fix Clippy lints in const-serialize etc. Mar 15, 2025
There were a number of tests failing to compile and/or run.
Fixed those that could be meaningfully fixed. Those that were
incomplete examples that could not be fixed are marked as
'ignore'.
@gbutler69
Copy link
Author

I also added fixes for all the doc tests that were failing when you run cargo make test on the repo

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.

1 participant