Skip to content

Commit ed974bf

Browse files
committed
Clippy fix
1 parent ced1ea4 commit ed974bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mistralrs-core/src/pipeline/chat_template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub fn apply_chat_template_to(
294294
};
295295
let mut template = template.replace("[::-1]", "|reverse");
296296

297-
if template.find("{{ meta }}").is_some() {
297+
if template.contains("{{ meta }}") {
298298
//fix for GLM4 models
299299
template = template.replace("{%- set meta = message.get(\"metadata\", \"\") %}", "");
300300
template = template.replace("{{ meta }}", "");

0 commit comments

Comments
 (0)