Change lint type to unique and add the suggestion.

This commit is contained in:
Victor Korkin
2018-05-29 22:56:38 +07:00
parent 01be53f929
commit f6e0388e08
3 changed files with 31 additions and 6 deletions

View File

@@ -673,6 +673,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
types::UNIT_ARG,
types::UNIT_CMP,
types::UNNECESSARY_CAST,
types::FN_TO_NUMERIC_CAST,
unicode::ZERO_WIDTH_SPACE,
unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME,
unused_io_amount::UNUSED_IO_AMOUNT,