From b15166490944e90c083c93086e849656535494e3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 20:49:33 +0900 Subject: fix(path): propagate PathBuf Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/create_project_command.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command') diff --git a/crates/shirabe/src/command/create_project_command.rs b/crates/shirabe/src/command/create_project_command.rs index c3c82d4..8432040 100644 --- a/crates/shirabe/src/command/create_project_command.rs +++ b/crates/shirabe/src/command/create_project_command.rs @@ -14,6 +14,7 @@ use shirabe_php_shim::{ is_dir, is_file, mkdir, realpath, rtrim, strtolower, unlink, }; use std::cell::RefCell; +use std::path::PathBuf; use std::rc::Rc; use crate::advisory::AuditConfig; @@ -559,14 +560,14 @@ impl CreateProjectCommand { } // PHP: try { $dirs = iterator_to_array($finder); ... } catch (\Exception $e) { ... } - let dirs: Vec = finder.iter().map(|f| f.get_pathname()).collect(); + let dirs: Vec = finder.iter().collect(); drop(finder); let mut had_error: Option = None; for dir in &dirs { if !fs.remove_directory(dir)? { had_error = Some( RuntimeException { - message: format!("Could not remove {}", dir), + message: format!("Could not remove {}", dir.display()), code: 0, } .into(), -- cgit v1.3.1