aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/filter
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-11 16:33:05 +0900
committernsfisis <nsfisis@gmail.com>2026-07-11 16:33:05 +0900
commit27d00055df8691a6bd99aaf38633a7338b16cc6a (patch)
tree4af17ccff5f8c2d09156fa62c559e60e3e683dac /crates/shirabe/src/filter
parent1ec2220def43e37e5a65b96dde93c19b493258f4 (diff)
downloadphp-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.gz
php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.zst
php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.zip
chore: use fully-qualified name for Rc/RefCell
Diffstat (limited to 'crates/shirabe/src/filter')
-rw-r--r--crates/shirabe/src/filter/platform_requirement_filter/platform_requirement_filter_factory.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/crates/shirabe/src/filter/platform_requirement_filter/platform_requirement_filter_factory.rs b/crates/shirabe/src/filter/platform_requirement_filter/platform_requirement_filter_factory.rs
index dcfd5191..12c69091 100644
--- a/crates/shirabe/src/filter/platform_requirement_filter/platform_requirement_filter_factory.rs
+++ b/crates/shirabe/src/filter/platform_requirement_filter/platform_requirement_filter_factory.rs
@@ -7,14 +7,13 @@ use crate::filter::platform_requirement_filter::{
platform_requirement_filter_interface::PlatformRequirementFilterInterface,
};
use shirabe_php_shim::{InvalidArgumentException, PhpMixed};
-use std::rc::Rc;
pub struct PlatformRequirementFilterFactory;
impl PlatformRequirementFilterFactory {
pub fn from_bool_or_list(
bool_or_list: PhpMixed,
- ) -> anyhow::Result<Rc<dyn PlatformRequirementFilterInterface>> {
+ ) -> anyhow::Result<std::rc::Rc<dyn PlatformRequirementFilterInterface>> {
match bool_or_list {
PhpMixed::Bool(b) => {
if b {
@@ -35,7 +34,9 @@ impl PlatformRequirementFilterFactory {
.collect(),
_ => unreachable!(),
};
- Ok(Rc::new(IgnoreListPlatformRequirementFilter::new(list)?))
+ Ok(std::rc::Rc::new(IgnoreListPlatformRequirementFilter::new(
+ list,
+ )?))
}
other => Err(anyhow::anyhow!(InvalidArgumentException {
message: format!(
@@ -47,11 +48,11 @@ impl PlatformRequirementFilterFactory {
}
}
- pub fn ignore_all() -> Rc<dyn PlatformRequirementFilterInterface> {
- Rc::new(IgnoreAllPlatformRequirementFilter)
+ pub fn ignore_all() -> std::rc::Rc<dyn PlatformRequirementFilterInterface> {
+ std::rc::Rc::new(IgnoreAllPlatformRequirementFilter)
}
- pub fn ignore_nothing() -> Rc<dyn PlatformRequirementFilterInterface> {
- Rc::new(IgnoreNothingPlatformRequirementFilter)
+ pub fn ignore_nothing() -> std::rc::Rc<dyn PlatformRequirementFilterInterface> {
+ std::rc::Rc::new(IgnoreNothingPlatformRequirementFilter)
}
}