aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/io
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/io')
-rw-r--r--crates/shirabe/tests/io/console_io_test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/tests/io/console_io_test.rs b/crates/shirabe/tests/io/console_io_test.rs
index f96aec1..9df851e 100644
--- a/crates/shirabe/tests/io/console_io_test.rs
+++ b/crates/shirabe/tests/io/console_io_test.rs
@@ -177,7 +177,7 @@ fn test_ask_and_validate() {
// PHP asserts the helper receives a Question with a validator. Behaviorally, an always-true
// validator passes the answer straight through.
let (console_io, _output) = make_console_io_with_answer("answer\n");
- let validator: Box<dyn Fn(PhpMixed) -> anyhow::Result<PhpMixed>> = Box::new(|value| Ok(value));
+ let validator: Box<dyn Fn(PhpMixed) -> anyhow::Result<PhpMixed>> = Box::new(Ok);
let result = console_io
.ask_and_validate(
"Why?".to_string(),