From 6739da8a8e271a82d1bf8ca79bba58640ae6e743 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 22 May 2026 01:43:34 +0900 Subject: refactor(php-shim): remove unnecessary methods --- crates/shirabe/src/command/archive_command.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'crates/shirabe/src/command/archive_command.rs') diff --git a/crates/shirabe/src/command/archive_command.rs b/crates/shirabe/src/command/archive_command.rs index c823860..01da89d 100644 --- a/crates/shirabe/src/command/archive_command.rs +++ b/crates/shirabe/src/command/archive_command.rs @@ -90,7 +90,7 @@ impl ArchiveCommand { let format = input .get_option("format") - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_else(|| { config @@ -103,7 +103,7 @@ impl ArchiveCommand { let dir = input .get_option("dir") - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_else(|| { config @@ -121,18 +121,15 @@ impl ArchiveCommand { &config, input .get_argument("package") - .as_string_opt() + .as_string() .map(|s| s.to_string()), input .get_argument("version") - .as_string_opt() + .as_string() .map(|s| s.to_string()), &format, &dir, - input - .get_option("file") - .as_string_opt() - .map(|s| s.to_string()), + input.get_option("file").as_string().map(|s| s.to_string()), input .get_option("ignore-filters") .as_bool() -- cgit v1.3.1