diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-29 00:16:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-29 00:23:32 +0900 |
| commit | 7f83e785a77fbdbcada9c6714703d4e5801af82a (patch) | |
| tree | ef7debc5cbc91d521db4dc5a563807c486dafd22 /crates/shirabe/src/util/config_validator.rs | |
| parent | 7715c98aaf3e3962cabbcf740e93fa817a2f8027 (diff) | |
| download | php-shirabe-7f83e785a77fbdbcada9c6714703d4e5801af82a.tar.gz php-shirabe-7f83e785a77fbdbcada9c6714703d4e5801af82a.tar.zst php-shirabe-7f83e785a77fbdbcada9c6714703d4e5801af82a.zip | |
refactor(io): unify IOInterface params to Rc<RefCell<dyn _>>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/config_validator.rs')
| -rw-r--r-- | crates/shirabe/src/util/config_validator.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/config_validator.rs b/crates/shirabe/src/util/config_validator.rs index 47b4968..5621841 100644 --- a/crates/shirabe/src/util/config_validator.rs +++ b/crates/shirabe/src/util/config_validator.rs @@ -39,9 +39,8 @@ impl ConfigValidator { let mut lax_valid = false; let mut manifest: Option<IndexMap<String, PhpMixed>> = None; - // TODO(phase-b): io type mismatch (&dyn IOInterface vs std::rc::Rc<std::cell::RefCell<dyn IOInterface>>) - let mut json = - JsonFile::new(file.to_string(), None, None).expect("config file path is always local"); + let mut json = JsonFile::new(file.to_string(), None, Some(self.io.clone())) + .expect("config file path is always local"); let schema_result: anyhow::Result<()> = (|| -> anyhow::Result<()> { manifest = Some(match json.read()? { PhpMixed::Array(m) => m.into_iter().map(|(k, v)| (k, *v)).collect(), |
