From f33487739aa9af2f40df678db2e418788a66e634 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Jun 2026 04:17:51 +0900 Subject: feat(package): implement RootAliasPackage root getters via owned returns It is faithful to PHP's by-value array/string semantics. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/package/handle.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'crates/shirabe/src/package/handle.rs') diff --git a/crates/shirabe/src/package/handle.rs b/crates/shirabe/src/package/handle.rs index 28b1dbe..d11b20e 100644 --- a/crates/shirabe/src/package/handle.rs +++ b/crates/shirabe/src/package/handle.rs @@ -916,7 +916,6 @@ macro_rules! impl_root_package_interface_handle { .as_root_package_interface() .expect("RootPackage handle invariant") .get_aliases() - .to_vec() } pub fn get_minimum_stability(&self) -> String { @@ -925,7 +924,6 @@ macro_rules! impl_root_package_interface_handle { .as_root_package_interface() .expect("RootPackage handle invariant") .get_minimum_stability() - .to_string() } pub fn get_stability_flags(&self) -> indexmap::IndexMap { @@ -934,7 +932,6 @@ macro_rules! impl_root_package_interface_handle { .as_root_package_interface() .expect("RootPackage handle invariant") .get_stability_flags() - .clone() } pub fn get_references(&self) -> indexmap::IndexMap { @@ -943,7 +940,6 @@ macro_rules! impl_root_package_interface_handle { .as_root_package_interface() .expect("RootPackage handle invariant") .get_references() - .clone() } pub fn get_prefer_stable(&self) -> bool { @@ -960,7 +956,6 @@ macro_rules! impl_root_package_interface_handle { .as_root_package_interface() .expect("RootPackage handle invariant") .get_config() - .clone() } pub fn set_requires(&self, requires: indexmap::IndexMap) { -- cgit v1.3.1