diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-29 04:17:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-29 04:24:14 +0900 |
| commit | f33487739aa9af2f40df678db2e418788a66e634 (patch) | |
| tree | b5456508d0ef8cf8d784fe99345a6a5f6e5cb561 /crates/shirabe/src/package/handle.rs | |
| parent | 633a250e3039d766af3ed5733fe9b825b994511c (diff) | |
| download | php-shirabe-f33487739aa9af2f40df678db2e418788a66e634.tar.gz php-shirabe-f33487739aa9af2f40df678db2e418788a66e634.tar.zst php-shirabe-f33487739aa9af2f40df678db2e418788a66e634.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/package/handle.rs')
| -rw-r--r-- | crates/shirabe/src/package/handle.rs | 5 |
1 files changed, 0 insertions, 5 deletions
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<String, i64> { @@ -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<String, String> { @@ -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<String, crate::package::Link>) { |
