Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Nov 22, 2024
1 parent 01bc5ae commit aad7b59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,12 @@ impl WorkspaceResolver {
}
previously_found_dir = true;

for (bare_specifier, dep_result) in pkg_json_folder.deps.dependencies.iter().chain(pkg_json_folder.deps.dev_dependencies.iter()) {
for (bare_specifier, dep_result) in pkg_json_folder
.deps
.dependencies
.iter()
.chain(pkg_json_folder.deps.dev_dependencies.iter())
{
if let Some(path) = specifier.strip_prefix(bare_specifier) {
if path.is_empty() || path.starts_with('/') {
let sub_path = path.strip_prefix('/').unwrap_or(path);
Expand Down

0 comments on commit aad7b59

Please sign in to comment.