diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs index 9d41c45..a738670 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell_style.rs @@ -52,9 +52,9 @@ impl TableCellStyle { if !diff.is_empty() { return Err(InvalidArgumentException( shirabe_php_shim::InvalidArgumentException { - message: shirabe_php_shim::sprintf( - "The TableCellStyle does not support the following options: '%s'.", - &[shirabe_php_shim::PhpMixed::String(diff.join("', '"))], + message: format!( + "The TableCellStyle does not support the following options: '{}'.", + shirabe_php_shim::PhpMixed::String(diff.join("', '")), ), code: 0, }, @@ -69,11 +69,9 @@ impl TableCellStyle { if align_map(&align).is_none() { return Err(InvalidArgumentException( shirabe_php_shim::InvalidArgumentException { - message: shirabe_php_shim::sprintf( - "Wrong align value. Value must be following: '%s'.", - &[shirabe_php_shim::PhpMixed::String( - align_map_keys().join("', '"), - )], + message: format!( + "Wrong align value. Value must be following: '{}'.", + shirabe_php_shim::PhpMixed::String(align_map_keys().join("', '"),), ), code: 0, }, |
