chore (backend-rs): accept clippy suggestions

This commit is contained in:
naskya 2024-06-09 14:02:15 +09:00
parent 9b234e86f3
commit 09d975bdce
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -25,8 +25,12 @@ pub async fn all_texts(
let mut texts: Vec<String> = vec![];
let is_renote = text.is_none();
text.map(|text| texts.push(text));
cw.map(|cw| texts.push(cw));
if let Some(text) = text {
texts.push(text)
}
if let Some(cw) = cw {
texts.push(cw)
}
texts.extend(
drive_file::Entity::find()