diff options
| author | sigoden <sigoden@gmail.com> | 2025-06-28 19:17:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 19:17:43 +0800 |
| commit | 419790fb74fbaf47d54519238b5a542a3875961e (patch) | |
| tree | 8917db58a4a77a514079bf115d670a3f82003c03 /src/utils/mod.rs | |
| parent | bad300bbce72dff6f085fc8b94e8ffbdd103f47f (diff) | |
| download | aichat-419790fb74fbaf47d54519238b5a542a3875961e.tar.gz | |
chore: clippy (#1334)
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 98f2da1..6c5b08a 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -162,7 +162,7 @@ pub fn indent_text<T: ToString>(s: T, size: usize) -> String { let indent_str = " ".repeat(size); s.to_string() .split('\n') - .map(|line| format!("{}{}", indent_str, line)) + .map(|line| format!("{indent_str}{line}")) .collect::<Vec<String>>() .join("\n") } |
