Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

fix: clippy unit test on doctests warnings#31

Merged
JasterV merged 1 commit intomainfrom
fix/doc-tests-clippy-error
Feb 25, 2024
Merged

fix: clippy unit test on doctests warnings#31
JasterV merged 1 commit intomainfrom
fix/doc-tests-clippy-error

Conversation

@JasterV
Copy link
Copy Markdown
Owner

@JasterV JasterV commented Feb 25, 2024

Clippy is reporting a warning because you can't write unit tests inside doc tests.

To fix it, the suggested solution is to mark the code example with no_run.

This will tell rust to make sure the example compiles but to not run it.

@JasterV JasterV merged commit bd43160 into main Feb 25, 2024
@JasterV JasterV deleted the fix/doc-tests-clippy-error branch February 25, 2024 22:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant