Skip to content

Commit

Permalink
ref: Removed unneeded identity map (#1883)
Browse files Browse the repository at this point in the history
Fixes Clippy error that was showing up in the linting CI action
  • Loading branch information
szokeasaurusrex authored Jan 2, 2024
1 parent 532d497 commit a21356e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sourcemaps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn unsplit_url(path: Option<&str>, basename: &str, ext: Option<&str>) -> String
}

pub fn get_sourcemap_ref_from_headers(file: &SourceFile) -> Option<sourcemap::SourceMapRef> {
get_sourcemap_reference_from_headers(file.headers.iter().map(|(k, v)| (k, v)))
get_sourcemap_reference_from_headers(file.headers.iter())
.map(|sm_ref| sourcemap::SourceMapRef::Ref(sm_ref.to_string()))
}

Expand Down

0 comments on commit a21356e

Please sign in to comment.