Change lints hyphen to underscore (#308)

pull/311/head
hafeoz 2 years ago committed by GitHub
parent 465ed6c860
commit 662a519128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,35 +57,35 @@ Alternatively, we can specify the lints that we want to `deny` in the code.
Here is a list of warning lints that is (hopefully) safe to deny (as of Rustc 1.48.0): Here is a list of warning lints that is (hopefully) safe to deny (as of Rustc 1.48.0):
```rust,ignore ```rust,ignore
#[deny(bad-style, #![deny(bad_style,
const-err, const_err,
dead-code, dead_code,
improper-ctypes, improper_ctypes,
non-shorthand-field-patterns, non_shorthand_field_patterns,
no-mangle-generic-items, no_mangle_generic_items,
overflowing-literals, overflowing_literals,
path-statements , path_statements,
patterns-in-fns-without-body, patterns_in_fns_without_body,
private-in-public, private_in_public,
unconditional-recursion, unconditional_recursion,
unused, unused,
unused-allocation, unused_allocation,
unused-comparisons, unused_comparisons,
unused-parens, unused_parens,
while-true)] while_true)]
``` ```
In addition, the following `allow`ed lints may be a good idea to `deny`: In addition, the following `allow`ed lints may be a good idea to `deny`:
```rust,ignore ```rust,ignore
#[deny(missing-debug-implementations, #![deny(missing_debug_implementations,
missing-docs, missing_docs,
trivial-casts, trivial_casts,
trivial-numeric-casts, trivial_numeric_casts,
unused-extern-crates, unused_extern_crates,
unused-import-braces, unused_import_braces,
unused-qualifications, unused_qualifications,
unused-results)] unused_results)]
``` ```
Some may also want to add `missing-copy-implementations` to their list. Some may also want to add `missing-copy-implementations` to their list.

Loading…
Cancel
Save