Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyboyQCD committed Nov 8, 2024
1 parent 0633fbc commit 3a12748
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/string/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FxHashMap<JsStr<'static>, usize>> = LazyLock::new(|| {
HashMap::<JsStr<'static>, usize, FxBuildHasher>::from_iter(
RAW_STATICS.iter().enumerate().map(|(v, &k)| (k, v)),
)
RAW_STATICS.iter().enumerate().map(|(v, &k)| (k, v)).collect::<HashMap<JsStr<'static>, usize, FxBuildHasher>>()
});

/// Array of raw static strings that aren't reference counted.
Expand Down

0 comments on commit 3a12748

Please sign in to comment.