From 243450fee9853c2fea66ae0642dabb8db5227d6f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 8 Jun 2026 02:44:38 +0900 Subject: feat(phase-c): resolve closure-capture phase-b TODOs in config/create-project Port Config::process() to the real Preg::replace_callback, whose closure borrows &self/flags and calls get_with_flags; surface get() errors via a captured cell so process now returns Result. Switch the replace_callback shim bounds to FnMut to allow the error-capturing closure. Wire CreateProjectCommand suggestion collection through the Rc reporter's interior mutation. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe-external-packages/src/composer/pcre/preg.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe-external-packages/src') diff --git a/crates/shirabe-external-packages/src/composer/pcre/preg.rs b/crates/shirabe-external-packages/src/composer/pcre/preg.rs index e16643a..ea189eb 100644 --- a/crates/shirabe-external-packages/src/composer/pcre/preg.rs +++ b/crates/shirabe-external-packages/src/composer/pcre/preg.rs @@ -211,7 +211,7 @@ impl Preg { todo!() } - pub fn replace_callback) -> String>( + pub fn replace_callback) -> String>( _pattern: &str, _replacement: F, _subject: &str, @@ -219,7 +219,7 @@ impl Preg { todo!() } - pub fn replace_callback4) -> String>( + pub fn replace_callback4) -> String>( _pattern: &str, _replacement: F, _subject: &str, @@ -228,7 +228,7 @@ impl Preg { todo!() } - pub fn replace_callback5) -> String>( + pub fn replace_callback5) -> String>( _pattern: &str, _replacement: F, _subject: &str, @@ -238,7 +238,7 @@ impl Preg { todo!() } - pub fn replace_callback6) -> String>( + pub fn replace_callback6) -> String>( _pattern: &str, _replacement: F, _subject: &str, -- cgit v1.3.1