aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/io/null_io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/io/null_io.rs')
-rw-r--r--crates/shirabe/src/io/null_io.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/io/null_io.rs b/crates/shirabe/src/io/null_io.rs
index 85a5fa5..0a83bff 100644
--- a/crates/shirabe/src/io/null_io.rs
+++ b/crates/shirabe/src/io/null_io.rs
@@ -70,11 +70,11 @@ impl IOInterfaceImmutable for NullIO {
fn ask_and_validate(
&self,
_question: String,
- _validator: Box<dyn Fn(PhpMixed) -> PhpMixed>,
+ _validator: Box<dyn Fn(PhpMixed) -> anyhow::Result<PhpMixed>>,
_attempts: Option<i64>,
default: PhpMixed,
- ) -> PhpMixed {
- default
+ ) -> anyhow::Result<PhpMixed> {
+ Ok(default)
}
fn ask_and_hide_answer(&self, _question: String) -> Option<String> {