summaryrefslogtreecommitdiff
path: root/crates/utils/string_proc/src/string_processer.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-09-25 14:23:55 +0800
committer魏曹先生 <1992414357@qq.com>2025-09-25 14:23:55 +0800
commite2e29c3934e40cfd4fde6f1b5e7517810c3bf1cd (patch)
tree2629abac480a4ca697c8dec09e7f79f690be3b8b /crates/utils/string_proc/src/string_processer.rs
parent300b0eeb68618a2b66469e83b79384a2d612c05d (diff)
Fixed by Clippy
Diffstat (limited to 'crates/utils/string_proc/src/string_processer.rs')
-rw-r--r--crates/utils/string_proc/src/string_processer.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/utils/string_proc/src/string_processer.rs b/crates/utils/string_proc/src/string_processer.rs
index 6ad8768..8b51c12 100644
--- a/crates/utils/string_proc/src/string_processer.rs
+++ b/crates/utils/string_proc/src/string_processer.rs
@@ -45,11 +45,10 @@ impl StringProcesser {
while let Some(c) = chars.next() {
processed.push(c);
- if let Some(&next) = chars.peek() {
- if c.is_lowercase() && next.is_uppercase() {
+ if let Some(&next) = chars.peek()
+ && c.is_lowercase() && next.is_uppercase() {
processed.push(' ');
}
- }
}
processed