persona: mentions.contains (clippy manual_contains on rust 1.95)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cf790b6142
commit
e8db03e8a7
1 changed files with 1 additions and 1 deletions
|
|
@ -922,7 +922,7 @@ struct Addressees {
|
|||
}
|
||||
|
||||
fn addressees(config: &Config, mentions: &[String], names: &BTreeMap<&str, &str>) -> Addressees {
|
||||
let to_you = mentions.iter().any(|id| *id == config.own_sender);
|
||||
let to_you = mentions.contains(&config.own_sender);
|
||||
let others = mentions.iter().filter(|id| **id != config.own_sender).map(|id| names.get(id.as_str()).copied().unwrap_or(id.as_str()).to_string()).collect();
|
||||
Addressees { to_you, others }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue