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/command/bump_command.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/shirabe/src/command/bump_command.rs') diff --git a/crates/shirabe/src/command/bump_command.rs b/crates/shirabe/src/command/bump_command.rs index 2787fcc..ddb17c2 100644 --- a/crates/shirabe/src/command/bump_command.rs +++ b/crates/shirabe/src/command/bump_command.rs @@ -4,7 +4,7 @@ use anyhow::Result; use shirabe_external_packages::composer::pcre::preg::Preg; use shirabe_external_packages::symfony::console::input::input_interface::InputInterface; use shirabe_external_packages::symfony::console::output::output_interface::OutputInterface; -use shirabe_php_shim::{file_get_contents, file_put_contents, is_writable, strtolower, PhpMixed}; +use shirabe_php_shim::{PhpMixed, file_get_contents, file_put_contents, is_writable, strtolower}; use crate::command::base_command::BaseCommand; use crate::command::completion_trait::CompletionTrait; @@ -100,7 +100,10 @@ impl BumpCommand { if !Filesystem::is_readable(&composer_json_path) { io.write_error( - PhpMixed::String(format!("{} is not readable.", composer_json_path)), + PhpMixed::String(format!( + "{} is not readable.", + composer_json_path + )), true, IOInterface::NORMAL, ); @@ -215,12 +218,9 @@ impl BumpCommand { .collect::>() .into_iter() .collect(); - let pattern = - BasePackage::package_names_to_regexp(&unique_lower); + let pattern = BasePackage::package_names_to_regexp(&unique_lower); for (key, reqs) in tasks.iter_mut() { - reqs.retain(|pkg_name, _| { - Preg::is_match(&pattern, pkg_name).unwrap_or(false) - }); + reqs.retain(|pkg_name, _| Preg::is_match(&pattern, pkg_name).unwrap_or(false)); } packages_filter } else { @@ -246,8 +246,8 @@ impl BumpCommand { package = alias.get_alias_of(); } - let bumped = bumper - .bump_requirement(link.get_constraint().as_ref(), package.as_ref())?; + let bumped = + bumper.bump_requirement(link.get_constraint().as_ref(), package.as_ref())?; if bumped == current_constraint { continue; -- cgit v1.3.1