From 3a127484a3ab717d4f30e02c124773e20f27b5f8 Mon Sep 17 00:00:00 2001 From: CrazyboyQCD Date: Fri, 8 Nov 2024 14:53:17 +0800 Subject: [PATCH] chore: fix lint --- core/string/src/common.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/string/src/common.rs b/core/string/src/common.rs index 27061793cb7..d4651128f85 100644 --- a/core/string/src/common.rs +++ b/core/string/src/common.rs @@ -222,9 +222,7 @@ const MAX_STATIC_LENGTH: usize = { /// Map from a string inside [`RAW_STATICS`] to its corresponding static index on `RAW_STATICS`. static RAW_STATICS_CACHE: LazyLock, usize>> = LazyLock::new(|| { - HashMap::, usize, FxBuildHasher>::from_iter( - RAW_STATICS.iter().enumerate().map(|(v, &k)| (k, v)), - ) + RAW_STATICS.iter().enumerate().map(|(v, &k)| (k, v)).collect::, usize, FxBuildHasher>>() }); /// Array of raw static strings that aren't reference counted.