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/autoload/class_loader.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'crates/shirabe/src/autoload/class_loader.rs') diff --git a/crates/shirabe/src/autoload/class_loader.rs b/crates/shirabe/src/autoload/class_loader.rs index 9727a45..2f4cfa0 100644 --- a/crates/shirabe/src/autoload/class_loader.rs +++ b/crates/shirabe/src/autoload/class_loader.rs @@ -4,10 +4,10 @@ use indexmap::IndexMap; use std::sync::{LazyLock, Mutex}; use shirabe_php_shim::{ - apcu_add, apcu_fetch, array_merge, array_values, call_user_func_array, defined, file_exists, - filter_var, function_exists, include_file, ini_get, spl_autoload_register, - spl_autoload_unregister, stream_resolve_include_path, strlen, strpos, strrpos, strtr, substr, - InvalidArgumentException, PhpMixed, DIRECTORY_SEPARATOR, FILTER_VALIDATE_BOOLEAN, + DIRECTORY_SEPARATOR, FILTER_VALIDATE_BOOLEAN, InvalidArgumentException, PhpMixed, apcu_add, + apcu_fetch, array_merge, array_values, call_user_func_array, defined, file_exists, filter_var, + function_exists, include_file, ini_get, spl_autoload_register, spl_autoload_unregister, + stream_resolve_include_path, strlen, strpos, strrpos, strtr, substr, }; /// @var array @@ -314,8 +314,7 @@ impl ClassLoader { && filter_var( &ini_get("apc.enabled").unwrap_or_default(), FILTER_VALIDATE_BOOLEAN, - ) - { + ) { apcu_prefix } else { None @@ -344,8 +343,7 @@ impl ClassLoader { if prepend { let mut new_map: IndexMap = IndexMap::new(); new_map.insert(self.vendor_dir.clone().unwrap(), self.clone()); - let old_map: IndexMap = - std::mem::take(&mut *registered); + let old_map: IndexMap = std::mem::take(&mut *registered); for (k, v) in old_map { if !new_map.contains_key(&k) { new_map.insert(k, v); -- cgit v1.3.1