diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
| commit | a1c7e6908a26e10f6e1f23a51721664b5e2d838d (patch) | |
| tree | c575c76f1b43359ed74913da4c6a2636643f1ba0 /crates/shirabe/src/console/input/input_option.rs | |
| parent | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (diff) | |
| download | php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.gz php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.zst php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.zip | |
chore(style): cargo fmt
Diffstat (limited to 'crates/shirabe/src/console/input/input_option.rs')
| -rw-r--r-- | crates/shirabe/src/console/input/input_option.rs | 12 |
1 files changed, 8 insertions, 4 deletions
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()); } } |
