aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/search_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-22 01:43:34 +0900
committernsfisis <nsfisis@gmail.com>2026-05-22 01:44:05 +0900
commit6739da8a8e271a82d1bf8ca79bba58640ae6e743 (patch)
treece397b02662cf3c101cb36545b0a6c94ddc21826 /crates/shirabe/src/command/search_command.rs
parent0b06f54103490e3ce5658e82bbc0119633e26cd8 (diff)
downloadphp-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.gz
php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.zst
php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.zip
refactor(php-shim): remove unnecessary methods
Diffstat (limited to 'crates/shirabe/src/command/search_command.rs')
-rw-r--r--crates/shirabe/src/command/search_command.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/shirabe/src/command/search_command.rs b/crates/shirabe/src/command/search_command.rs
index fb6b047..9375ec7 100644
--- a/crates/shirabe/src/command/search_command.rs
+++ b/crates/shirabe/src/command/search_command.rs
@@ -51,7 +51,7 @@ impl SearchCommand {
let format = input
.get_option("format")
- .as_string_opt()
+ .as_string()
.map(|s| s.to_string())
.unwrap_or_else(|| "text".to_string());
if !in_array(
@@ -114,10 +114,7 @@ impl SearchCommand {
mode = repository_interface::SEARCH_VENDOR;
}
- let r#type = input
- .get_option("type")
- .as_string_opt()
- .map(|s| s.to_string());
+ let r#type = input.get_option("type").as_string().map(|s| s.to_string());
let tokens_arg = input.get_argument("tokens");
let token_strings: Vec<String> = tokens_arg