From a1c7e6908a26e10f6e1f23a51721664b5e2d838d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:53:53 +0900 Subject: chore(style): cargo fmt --- crates/shirabe/src/console/input/input_option.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/console/input/input_option.rs') diff --git a/crates/shirabe/src/console/input/input_option.rs b/crates/shirabe/src/console/input/input_option.rs index 069c3f4..6e93a62 100644 --- a/crates/shirabe/src/console/input/input_option.rs +++ b/crates/shirabe/src/console/input/input_option.rs @@ -51,16 +51,20 @@ impl InputOption { if let SuggestedValues::List(ref list) = this.suggested_values { if !list.is_empty() && !this.inner.accept_value() { return Err(LogicException { - message: "Cannot set suggested values if the option does not accept a value.".to_string(), + message: "Cannot set suggested values if the option does not accept a value." + .to_string(), code: 0, - }.into()); + } + .into()); } } else if let SuggestedValues::Closure(_) = this.suggested_values { if !this.inner.accept_value() { return Err(LogicException { - message: "Cannot set suggested values if the option does not accept a value.".to_string(), + message: "Cannot set suggested values if the option does not accept a value." + .to_string(), code: 0, - }.into()); + } + .into()); } } -- cgit v1.3.1