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/null_io.rs | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) (limited to 'crates/shirabe/src/io/null_io.rs') diff --git a/crates/shirabe/src/io/null_io.rs b/crates/shirabe/src/io/null_io.rs index ad41746..4218398 100644 --- a/crates/shirabe/src/io/null_io.rs +++ b/crates/shirabe/src/io/null_io.rs @@ -1,8 +1,8 @@ //! ref: composer/src/Composer/IO/NullIO.php -use shirabe_php_shim::PhpMixed; use crate::io::base_io::BaseIO; use crate::io::io_interface::IOInterface; +use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct NullIO { @@ -30,16 +30,19 @@ impl IOInterface for NullIO { false } - fn write(&self, _messages: PhpMixed, _newline: bool, _verbosity: i64) { - } + fn write(&self, _messages: PhpMixed, _newline: bool, _verbosity: i64) {} - fn write_error(&self, _messages: PhpMixed, _newline: bool, _verbosity: i64) { - } + fn write_error(&self, _messages: PhpMixed, _newline: bool, _verbosity: i64) {} - fn overwrite(&self, _messages: PhpMixed, _newline: bool, _size: Option, _verbosity: i64) { - } + fn overwrite(&self, _messages: PhpMixed, _newline: bool, _size: Option, _verbosity: i64) {} - fn overwrite_error(&self, _messages: PhpMixed, _newline: bool, _size: Option, _verbosity: i64) { + fn overwrite_error( + &self, + _messages: PhpMixed, + _newline: bool, + _size: Option, + _verbosity: i64, + ) { } fn ask(&self, _question: String, default: PhpMixed) -> PhpMixed { @@ -50,7 +53,13 @@ impl IOInterface for NullIO { default } - 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 { default } @@ -58,7 +67,15 @@ impl IOInterface for NullIO { None } - 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 { default } } -- cgit v1.3.1