aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-20 20:49:33 +0900
committernsfisis <nsfisis@gmail.com>2026-06-20 21:11:50 +0900
commitb15166490944e90c083c93086e849656535494e3 (patch)
tree4a517d8284b5d1574072c1098b8f0c3109cf12cd /crates/shirabe-external-packages/src
parenta5ebca8f7001351aa26443a4a02a71c96190eccb (diff)
downloadphp-shirabe-b15166490944e90c083c93086e849656535494e3.tar.gz
php-shirabe-b15166490944e90c083c93086e849656535494e3.tar.zst
php-shirabe-b15166490944e90c083c93086e849656535494e3.zip
fix(path): propagate PathBuf
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src')
-rw-r--r--crates/shirabe-external-packages/src/symfony/finder/finder.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/finder/finder.rs b/crates/shirabe-external-packages/src/symfony/finder/finder.rs
index ec596b1..9ca17d5 100644
--- a/crates/shirabe-external-packages/src/symfony/finder/finder.rs
+++ b/crates/shirabe-external-packages/src/symfony/finder/finder.rs
@@ -1,6 +1,6 @@
//! ref: composer/vendor/symfony/finder/Finder.php
-use crate::symfony::finder::SplFileInfo;
+use std::path::{Path, PathBuf};
/// Helper trait so `Finder::exclude` accepts both single strings and slices
/// (PHP's variadic / array argument compatibility).
@@ -42,7 +42,7 @@ impl Finder {
todo!()
}
- pub fn r#in(&mut self, _dirs: &str) -> &mut Self {
+ pub fn r#in(&mut self, _dirs: impl AsRef<Path>) -> &mut Self {
todo!()
}
@@ -80,7 +80,7 @@ impl Finder {
pub fn sort<F>(&mut self, _comparator: F) -> &mut Self
where
- F: FnMut(&SplFileInfo, &SplFileInfo) -> i64,
+ F: FnMut(&PathBuf, &PathBuf) -> i64,
{
todo!()
}
@@ -101,7 +101,7 @@ impl Finder {
todo!()
}
- pub fn iter(&self) -> impl Iterator<Item = SplFileInfo> {
+ pub fn iter(&self) -> impl Iterator<Item = PathBuf> {
todo!();
std::iter::empty()
}
@@ -116,8 +116,8 @@ impl Finder {
}
impl IntoIterator for &Finder {
- type Item = SplFileInfo;
- type IntoIter = std::vec::IntoIter<SplFileInfo>;
+ type Item = PathBuf;
+ type IntoIter = std::vec::IntoIter<PathBuf>;
fn into_iter(self) -> Self::IntoIter {
todo!()
@@ -132,22 +132,22 @@ impl FinderIterator {
todo!()
}
- pub fn current(&self) -> SplFileInfo {
+ pub fn current(&self) -> PathBuf {
todo!()
}
}
impl Iterator for FinderIterator {
- type Item = SplFileInfo;
+ type Item = PathBuf;
- fn next(&mut self) -> Option<SplFileInfo> {
+ fn next(&mut self) -> Option<PathBuf> {
todo!()
}
}
impl IntoIterator for Finder {
- type Item = SplFileInfo;
- type IntoIter = std::vec::IntoIter<SplFileInfo>;
+ type Item = PathBuf;
+ type IntoIter = std::vec::IntoIter<PathBuf>;
fn into_iter(self) -> Self::IntoIter {
todo!()
@@ -155,8 +155,8 @@ impl IntoIterator for Finder {
}
impl IntoIterator for &mut Finder {
- type Item = SplFileInfo;
- type IntoIter = std::vec::IntoIter<SplFileInfo>;
+ type Item = PathBuf;
+ type IntoIter = std::vec::IntoIter<PathBuf>;
fn into_iter(self) -> Self::IntoIter {
todo!()