Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jan 9, 2025
1 parent 0315881 commit 8f119f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ impl JsCompiler {
let resources = context.resources_map.lock();

resources.par_iter().for_each(|(name, resource)| {
let path = Path::new(&output_path).join(name.split(|c| c == '?' || c == '#').next().unwrap());
let path = Path::new(&output_path).join(name.split(['?', '#']).next().unwrap());
let dir = path.parent().unwrap();
if !dir.exists() {
std::fs::create_dir_all(dir).unwrap();
Expand Down

0 comments on commit 8f119f1

Please sign in to comment.