Fix indentation of cfg that isn't formatted by rustfmt

This commit is contained in:
David Tolnay
2019-02-01 17:48:14 -08:00
parent bb99b31eb0
commit 1349548367
+28 -25
View File
@@ -102,31 +102,34 @@
) )
)] )]
// Ignored clippy_pedantic lints // Ignored clippy_pedantic lints
#![cfg_attr(feature = "cargo-clippy", allow( #![cfg_attr(
// integer and float ser/de requires these sorts of casts feature = "cargo-clippy",
cast_possible_truncation, allow(
cast_possible_wrap, // integer and float ser/de requires these sorts of casts
cast_precision_loss, cast_possible_truncation,
cast_sign_loss, cast_possible_wrap,
// simplifies some macros cast_precision_loss,
invalid_upcast_comparisons, cast_sign_loss,
// things are often more readable this way // simplifies some macros
decimal_literal_representation, invalid_upcast_comparisons,
module_name_repetitions, // things are often more readable this way
option_unwrap_used, decimal_literal_representation,
result_unwrap_used, module_name_repetitions,
shadow_reuse, option_unwrap_used,
single_match_else, result_unwrap_used,
use_self, shadow_reuse,
// not practical single_match_else,
indexing_slicing, use_self,
many_single_char_names, // not practical
missing_docs_in_private_items, indexing_slicing,
similar_names, many_single_char_names,
// alternative is not stable missing_docs_in_private_items,
empty_enum, similar_names,
use_debug, // alternative is not stable
))] empty_enum,
use_debug,
)
)]
// Blacklisted Rust lints. // Blacklisted Rust lints.
// //
// Compiler bug involving unused_imports: // Compiler bug involving unused_imports: