Skip to content

Commit

Permalink
fix: mappings_size_hint not good
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Mar 18, 2024
1 parent 6069d6e commit aadc71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn get_map<S: StreamChunks>(
stream: &S,
options: &MapOptions,
) -> Option<SourceMap> {
let mut mappings = Vec::with_capacity(stream.mappings_size_hint());
let mut mappings = Vec::new();
let mut sources: Vec<Cow<'static, str>> = Vec::new();
let mut sources_content: Vec<Cow<'static, str>> = Vec::new();
let mut names: Vec<Cow<'static, str>> = Vec::new();
Expand Down

0 comments on commit aadc71e

Please sign in to comment.