aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/plugin_manager.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin/plugin_manager.rs')
-rw-r--r--crates/shirabe/src/plugin/plugin_manager.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/plugin/plugin_manager.rs b/crates/shirabe/src/plugin/plugin_manager.rs
index 2fff2d74..1ecb4153 100644
--- a/crates/shirabe/src/plugin/plugin_manager.rs
+++ b/crates/shirabe/src/plugin/plugin_manager.rs
@@ -224,7 +224,7 @@ impl PluginManager {
if package.get_type() == "composer-plugin" {
let requires_map = package.get_requires();
let mut requires_composer: Option<&shirabe_semver::constraint::AnyConstraint> = None;
- for (_k, link) in &requires_map {
+ for (_k, link) in requires_map.iter() {
if "composer-plugin-api" == link.get_target() {
requires_composer = Some(link.get_constraint());
break;
@@ -951,7 +951,7 @@ impl PluginManager {
package: PackageInterfaceHandle,
) -> anyhow::Result<IndexMap<String, PackageInterfaceHandle>> {
// TODO(plugin): used by registerPackage to assemble plugin dependency autoload map
- for (_k, require_link) in &package.get_requires() {
+ for (_k, require_link) in package.get_requires().iter() {
for required_package in installed_repo
.find_packages_with_replacers_and_providers(require_link.get_target(), None)?
{