From 7f83e785a77fbdbcada9c6714703d4e5801af82a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 29 May 2026 00:16:56 +0900 Subject: refactor(io): unify IOInterface params to Rc> Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/util/config_validator.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/util/config_validator.rs') 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> = None; - // TODO(phase-b): io type mismatch (&dyn IOInterface vs std::rc::Rc>) - 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(), -- cgit v1.3.1