diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
| commit | 748e741f740ac46ec40e42679aba3b07927709c0 (patch) | |
| tree | 31f01831b11613631ba68da047abf1a9aa43f1b0 /crates/shirabe-class-map-generator/src/php_file_parser.rs | |
| parent | 79bcd3a9ce71954ce7b257e5f3ca1c147c0d974a (diff) | |
| download | php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.gz php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.zst php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.zip | |
chore: cargo clippy --fix
Diffstat (limited to 'crates/shirabe-class-map-generator/src/php_file_parser.rs')
| -rw-r--r-- | crates/shirabe-class-map-generator/src/php_file_parser.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crates/shirabe-class-map-generator/src/php_file_parser.rs b/crates/shirabe-class-map-generator/src/php_file_parser.rs index d87db82..95b2997 100644 --- a/crates/shirabe-class-map-generator/src/php_file_parser.rs +++ b/crates/shirabe-class-map-generator/src/php_file_parser.rs @@ -45,17 +45,17 @@ impl PhpFileParser { message, &[shirabe_php_shim::PhpMixed::String(path.to_string())], ); - if let Some(error) = error { - if let Some(err_msg) = error.get("message") { - message = format!( - "{}{}{}{}{}", - message, - PHP_EOL, - "The following message may be helpful:", - PHP_EOL, - err_msg.as_string().unwrap_or("") - ); - } + if let Some(error) = error + && let Some(err_msg) = error.get("message") + { + message = format!( + "{}{}{}{}{}", + message, + PHP_EOL, + "The following message may be helpful:", + PHP_EOL, + err_msg.as_string().unwrap_or("") + ); } return Err(anyhow!(RuntimeException { message, code: 0 })); |
