style(context): bersihkan warning clippy pedantic di squash.rs dan dedup.rs

Perbaikan gaya murni (format! di-append ke String -> write!, syntax
perbandingan yang lebih jelas, backtick di doc comment) tanpa
mengubah perilaku -- semua test tetap hijau.
This commit is contained in:
asepharyana
2026-07-16 07:56:11 +07:00
parent d6de9735ab
commit e075eb7acc
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ pub fn collapse(messages: &[ChatMessage]) -> (Vec<ChatMessage>, bool) {
///
/// Why hash the arguments: keeps the key a fixed, short size regardless
/// of argument payload size. `serde_json::to_string` is already
/// canonical here — this codebase doesn't enable serde_json's
/// canonical here — this codebase doesn't enable `serde_json`'s
/// `preserve_order` feature, so `Value::Object` is backed by a
/// `BTreeMap` and always serializes keys in sorted order.
fn dedup_key(tool_name: &str, canonical_args: &str) -> String {