Skip to content

Fix warning for clippy

When trying to build my project, I get the following errors:

error[E0658]: scoped lint `clippy::all` is experimental (see issue #44690)
 --> /home/mdeboard/projects/stb_truetype-rs/src/lib.rs:2:9
  |
2 | #![warn(clippy::all)]
  |         ^^^^^^^^^^^
  |
  = help: add #![feature(tool_lints)] to the crate attributes to enable

error[E0658]: scoped lint `clippy::too_many_arguments` is experimental (see issue #44690)
 --> /home/mdeboard/projects/stb_truetype-rs/src/lib.rs:4:5
  |
4 |     clippy::too_many_arguments,
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add #![feature(tool_lints)] to the crate attributes to enable

error[E0658]: scoped lint `clippy::cast_lossless` is experimental (see issue #44690)
 --> /home/mdeboard/projects/stb_truetype-rs/src/lib.rs:5:5
  |
5 |     clippy::cast_lossless,
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add #![feature(tool_lints)] to the crate attributes to enable

error[E0658]: scoped lint `clippy::many_single_char_names` is experimental (see issue #44690)
 --> /home/mdeboard/projects/stb_truetype-rs/src/lib.rs:6:5
  |
6 |     clippy::many_single_char_names
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add #![feature(tool_lints)] to the crate attributes to enable

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `stb_truetype`.

This patch adds #![feature(tool_lints)].

I'm new to contributing to Rust OSS so if I did something wrong or dumb please let me know.

Thanks

Merge request reports