summaryrefslogtreecommitdiffstats
path: root/src/utils/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-08-08 06:41:21 +0800
committerGitHub <noreply@github.com>2025-08-08 06:41:21 +0800
commitcb888ef97e4123a1c27bce21ca99360e55ab1481 (patch)
tree312bb6d05d4e15feaa3f708fb57d2e9f40fdded9 /src/utils/mod.rs
parentcf93c2210698a5b854d58b2a3857d32a498a867d (diff)
downloadaichat-cb888ef97e4123a1c27bce21ca99360e55ab1481.tar.gz
chore: clippy with rust 1.89 (#1379)
Diffstat (limited to 'src/utils/mod.rs')
-rw-r--r--src/utils/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 31a05e2..e8369d8 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -88,7 +88,7 @@ pub fn estimate_token_length(text: &str) -> usize {
output.ceil() as usize
}
-pub fn strip_think_tag(text: &str) -> Cow<str> {
+pub fn strip_think_tag(text: &str) -> Cow<'_, str> {
THINK_TAG_RE.replace_all(text, "")
}