aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/formatter
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-symfony-console/src/formatter')
-rw-r--r--crates/shirabe-symfony-console/src/formatter/output_formatter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe-symfony-console/src/formatter/output_formatter.rs b/crates/shirabe-symfony-console/src/formatter/output_formatter.rs
index 649af71d..245707d9 100644
--- a/crates/shirabe-symfony-console/src/formatter/output_formatter.rs
+++ b/crates/shirabe-symfony-console/src/formatter/output_formatter.rs
@@ -34,7 +34,7 @@ impl OutputFormatter {
/// Escapes trailing "\" in given text.
pub fn escape_trailing_backslash(text: &str) -> String {
let mut text = text.to_string();
- if shirabe_php_shim::str_ends_with(&text, "\\") {
+ if text.ends_with('\\') {
let len = shirabe_php_shim::strlen(&text);
text = shirabe_php_shim::rtrim(&text, Some("\\"));
text = shirabe_php_shim::str_replace("\0", "", &text);