Remove depricated lints
This commit is contained in:
parent
7e0b88ddbd
commit
9f8ae75691
@ -19,12 +19,10 @@
|
|||||||
|
|
||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![feature(rust_2018_preview)]
|
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
all(test, feature = "clippy"),
|
all(test, feature = "clippy"),
|
||||||
allow(option_unwrap_used, result_unwrap_used)
|
allow(option_unwrap_used, result_unwrap_used)
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(option_map_unit_fn))]
|
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "clippy",
|
feature = "clippy",
|
||||||
warn(
|
warn(
|
||||||
@ -53,8 +51,6 @@
|
|||||||
no_mangle_generic_items,
|
no_mangle_generic_items,
|
||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
plugin_as_library,
|
plugin_as_library,
|
||||||
private_no_mangle_fns,
|
|
||||||
private_no_mangle_statics,
|
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unions_with_drop_fields,
|
unions_with_drop_fields,
|
||||||
while_true,
|
while_true,
|
||||||
|
|||||||
@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![feature(rust_2018_preview)]
|
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name))]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name, option_map_unit_fn))]
|
|
||||||
// Enable lint group collections
|
// Enable lint group collections
|
||||||
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
||||||
// standalone lints
|
// standalone lints
|
||||||
@ -31,8 +30,6 @@
|
|||||||
no_mangle_generic_items,
|
no_mangle_generic_items,
|
||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
plugin_as_library,
|
plugin_as_library,
|
||||||
private_no_mangle_fns,
|
|
||||||
private_no_mangle_statics,
|
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unions_with_drop_fields,
|
unions_with_drop_fields,
|
||||||
while_true,
|
while_true,
|
||||||
|
|||||||
@ -19,15 +19,9 @@
|
|||||||
|
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
allow(
|
allow(clone_on_ref_ptr, blacklisted_name, match_same_arms,)
|
||||||
clone_on_ref_ptr,
|
|
||||||
blacklisted_name,
|
|
||||||
match_same_arms,
|
|
||||||
option_map_unit_fn
|
|
||||||
)
|
|
||||||
)]
|
)]
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![feature(rust_2018_preview)]
|
|
||||||
// Enable lint group collections
|
// Enable lint group collections
|
||||||
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
||||||
// standalone lints
|
// standalone lints
|
||||||
@ -38,8 +32,6 @@
|
|||||||
no_mangle_generic_items,
|
no_mangle_generic_items,
|
||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
plugin_as_library,
|
plugin_as_library,
|
||||||
private_no_mangle_fns,
|
|
||||||
private_no_mangle_statics,
|
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unions_with_drop_fields,
|
unions_with_drop_fields,
|
||||||
while_true,
|
while_true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user