rustfmt chathistory TARGETS

This commit is contained in:
Jean Chevronnet 2026-08-08 21:36:12 +00:00
parent ee83298853
commit 0578b63bd6
No known key found for this signature in database
GPG key ID: 439666D63A9477E4

View file

@ -187,7 +187,10 @@ impl Command for ChatHistory {
};
if key.starts_with('#') {
if s.is_member(uid, key) {
let name = buf.back().map(|m| m.target.clone()).unwrap_or_else(|| key.clone());
let name = buf
.back()
.map(|m| m.target.clone())
.unwrap_or_else(|| key.clone());
targets.push((name, ts));
}
} else if let Some(rest) = key.strip_prefix('\0') {