|
1 | 1 | #![recursion_limit = "1024"] |
2 | 2 | #![deny(missing_debug_implementations, missing_copy_implementations)] |
3 | | -#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] |
4 | | -#![cfg_attr(feature = "cargo-clippy", warn(clippy))] |
5 | | -// Clippy lints |
6 | | -#![cfg_attr(feature = "cargo-clippy", allow(type_complexity))] |
7 | | -#![cfg_attr( |
8 | | - feature = "cargo-clippy", |
9 | | - warn( |
10 | | - wrong_pub_self_convention, |
11 | | - used_underscore_binding, |
12 | | - use_self, |
13 | | - unseparated_literal_suffix, |
14 | | - unnecessary_unwrap, |
15 | | - unimplemented, |
16 | | - single_match_else, |
17 | | - shadow_unrelated, |
18 | | - option_map_unwrap_or_else, |
19 | | - option_map_unwrap_or, |
20 | | - needless_continue, |
21 | | - mutex_integer, |
22 | | - needless_borrow, |
23 | | - items_after_statements, |
24 | | - filter_map, |
25 | | - expl_impl_clone_on_copy, |
26 | | - else_if_without_else, |
27 | | - doc_markdown, |
28 | | - default_trait_access, |
29 | | - option_unwrap_used, |
30 | | - result_unwrap_used, |
31 | | - wrong_pub_self_convention, |
32 | | - mut_mut, |
33 | | - non_ascii_literal, |
34 | | - unicode_not_nfc, |
35 | | - enum_glob_use, |
36 | | - if_not_else, |
37 | | - items_after_statements, |
38 | | - used_underscore_binding |
39 | | - ) |
| 3 | +#![warn( |
| 4 | + clippy::option_unwrap_used, |
| 5 | + clippy::result_unwrap_used, |
| 6 | + clippy::print_stdout, |
| 7 | + clippy::wrong_pub_self_convention, |
| 8 | + clippy::mut_mut, |
| 9 | + clippy::non_ascii_literal, |
| 10 | + clippy::similar_names, |
| 11 | + clippy::unicode_not_nfc, |
| 12 | + clippy::enum_glob_use, |
| 13 | + clippy::if_not_else, |
| 14 | + clippy::items_after_statements, |
| 15 | + clippy::used_underscore_binding, |
| 16 | + clippy::cargo_common_metadata, |
| 17 | + clippy::dbg_macro, |
| 18 | + clippy::doc_markdown, |
| 19 | + clippy::filter_map, |
| 20 | + clippy::map_flatten, |
| 21 | + clippy::match_same_arms, |
| 22 | + clippy::needless_borrow, |
| 23 | + clippy::needless_pass_by_value, |
| 24 | + clippy::option_map_unwrap_or, |
| 25 | + clippy::option_map_unwrap_or_else, |
| 26 | + clippy::redundant_clone, |
| 27 | + clippy::result_map_unwrap_or_else, |
| 28 | + clippy::unnecessary_unwrap, |
| 29 | + clippy::unseparated_literal_suffix, |
| 30 | + clippy::wildcard_dependencies |
| 31 | +
|
40 | 32 | )] |
41 | 33 |
|
42 | 34 | extern crate proc_macro; |
43 | | -extern crate proc_macro2; |
| 35 | +use proc_macro2; |
44 | 36 | #[macro_use] |
45 | 37 | extern crate quote; |
46 | 38 | #[macro_use] |
|
0 commit comments