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 linter warning in schema #342

Open
larry0x opened this issue Oct 12, 2023 · 0 comments
Open

Fix linter warning in schema #342

larry0x opened this issue Oct 12, 2023 · 0 comments

Comments

@larry0x
Copy link
Contributor

larry0x commented Oct 12, 2023

We get a lot of these when generating JSON schemas:

warning: unused `Result` that must be used
  --> /var/folders/zl/2fy00jl13gv4dvd76h9g8yvr0000gn/T/fsio_dGGCgBbJ5d.rs:56:5
   |
56 |     fs::remove_dir_all("schema");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
   |
56 |     let _ = fs::remove_dir_all("schema");
   |     +++++++
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

No branches or pull requests

1 participant