diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-14 14:13:00 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-14 14:13:00 +0900 |
| commit | 430f59c1938b9e5da381365172ab788b54895ffc (patch) | |
| tree | 180ade07dadc7793a45839f42b5674d62bc5fc00 /crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs | |
| parent | ba0a7f913b4b2a83d0c8862d657bdc867730a962 (diff) | |
| download | php-shirabe-430f59c1938b9e5da381365172ab788b54895ffc.tar.gz php-shirabe-430f59c1938b9e5da381365172ab788b54895ffc.tar.zst php-shirabe-430f59c1938b9e5da381365172ab788b54895ffc.zip | |
refactor: auto-fix clippy warnings
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs index 3f1b719..b737cbc 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs @@ -47,18 +47,17 @@ impl TableCell { )); } - if let Some(style) = options.get("style") { - if !matches!(style, TableCellOption::Style(_)) - && !matches!(style, TableCellOption::Null) - { - return Err(InvalidArgumentException( - shirabe_php_shim::InvalidArgumentException { - message: "The style option must be an instance of \"TableCellStyle\"." - .to_string(), - code: 0, - }, - )); - } + if let Some(style) = options.get("style") + && !matches!(style, TableCellOption::Style(_)) + && !matches!(style, TableCellOption::Null) + { + return Err(InvalidArgumentException( + shirabe_php_shim::InvalidArgumentException { + message: "The style option must be an instance of \"TableCellStyle\"." + .to_string(), + code: 0, + }, + )); } for (key, option) in options { |
