chore (backend-rs): accept clippy suggestions
This commit is contained in:
parent
9b234e86f3
commit
09d975bdce
1 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue