From a185df1e77e399cf61303857793fda7cc3bdfd46 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 26 Jan 2018 00:19:21 -0800 Subject: [PATCH] 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. --- serde/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serde/src/lib.rs b/serde/src/lib.rs index b68f2574..e225c4bb 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -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,