mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
style: 🎨 apply clippy & rustfmt
This commit is contained in:
parent
33aa9dbff9
commit
26da6abd22
2 changed files with 5 additions and 4 deletions
|
@ -515,8 +515,7 @@ impl Manifest {
|
||||||
|
|
||||||
for (specifier, ty) in dependencies {
|
for (specifier, ty) in dependencies {
|
||||||
let overridden = overrides.iter().find_map(|(k_path, spec)| {
|
let overridden = overrides.iter().find_map(|(k_path, spec)| {
|
||||||
(&path == &k_path[..k_path.len() - 1]
|
(path == k_path[..k_path.len() - 1] && k_path.last() == Some(&specifier.name()))
|
||||||
&& k_path.get(k_path.len() - 1) == Some(&specifier.name()))
|
|
||||||
.then_some(spec)
|
.then_some(spec)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,9 @@ impl Project {
|
||||||
|
|
||||||
if root_deps.contains(&name) {
|
if root_deps.contains(&name) {
|
||||||
let specifier = lockfile.root_specifier(resolved_pkg).unwrap();
|
let specifier = lockfile.root_specifier(resolved_pkg).unwrap();
|
||||||
let linking_dir = &self.path().join(packages_folder(specifier.realm().copied().unwrap_or_default()));
|
let linking_dir = &self.path().join(packages_folder(
|
||||||
|
specifier.realm().copied().unwrap_or_default(),
|
||||||
|
));
|
||||||
|
|
||||||
debug!(
|
debug!(
|
||||||
"linking root package {name}@{version} to directory {}",
|
"linking root package {name}@{version} to directory {}",
|
||||||
|
|
Loading…
Reference in a new issue