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/io/io_interface.rs | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/io/io_interface.rs') diff --git a/crates/shirabe/src/io/io_interface.rs b/crates/shirabe/src/io/io_interface.rs index 1a6eb3f..446f47c 100644 --- a/crates/shirabe/src/io/io_interface.rs +++ b/crates/shirabe/src/io/io_interface.rs @@ -1,9 +1,9 @@ //! ref: composer/src/Composer/IO/IOInterface.php +use crate::config::Config; use indexmap::IndexMap; -use shirabe_php_shim::PhpMixed; use shirabe_external_packages::psr::log::logger_interface::LoggerInterface; -use crate::config::Config; +use shirabe_php_shim::PhpMixed; pub trait IOInterface: LoggerInterface { const QUIET: i64 = 1; @@ -38,11 +38,25 @@ pub trait IOInterface: LoggerInterface { fn ask_confirmation(&self, question: String, default: bool) -> bool; - fn ask_and_validate(&self, question: String, validator: Box PhpMixed>, attempts: Option, default: PhpMixed) -> PhpMixed; + fn ask_and_validate( + &self, + question: String, + validator: Box PhpMixed>, + attempts: Option, + default: PhpMixed, + ) -> PhpMixed; fn ask_and_hide_answer(&self, question: String) -> Option; - fn select(&self, question: String, choices: Vec, default: PhpMixed, attempts: PhpMixed, error_message: String, multiselect: bool) -> PhpMixed; + fn select( + &self, + question: String, + choices: Vec, + default: PhpMixed, + attempts: PhpMixed, + error_message: String, + multiselect: bool, + ) -> PhpMixed; fn get_authentications(&self) -> IndexMap>>; @@ -50,7 +64,12 @@ pub trait IOInterface: LoggerInterface { fn get_authentication(&self, repository_name: &str) -> IndexMap>; - fn set_authentication(&self, repository_name: String, username: String, password: Option); + fn set_authentication( + &self, + repository_name: String, + username: String, + password: Option, + ); fn load_configuration(&self, config: &Config); } -- cgit v1.3.1