From 2b51554ff59d1e5cbf8dd2db65d278b0202a9102 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 27 Jun 2026 03:52:05 +0900 Subject: refactor: fix compiler warnings and clippy warnings --- crates/shirabe/tests/io/console_io_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe/tests/io') 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 anyhow::Result> = Box::new(|value| Ok(value)); + let validator: Box anyhow::Result> = Box::new(Ok); let result = console_io .ask_and_validate( "Why?".to_string(), -- cgit v1.3.1