Ignore decimal_literal_representation lint

The number 4096 is used to cap the size of collections that we preallocate.

    cmp::min(hint.unwrap_or(0), 4096)

I find this number more understandable than 0x1000.
This commit is contained in:
David Tolnay 2018-01-26 00:19:21 -08:00
parent 1bdf5ecec4
commit a185df1e77
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -104,6 +104,7 @@
// simplifies some macros
invalid_upcast_comparisons,
// things are often more readable this way
decimal_literal_representation,
option_unwrap_used,
result_unwrap_used,
shadow_reuse,