chore (backend-rs): reference Options using as_ref

This commit is contained in:
naskya 2024-06-15 06:54:18 +09:00
parent feee898f05
commit 93fdf11cfa
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -18,8 +18,8 @@ pub async fn elaborate_impl(
file_ids: &[String],
text: Option<String>,
cw: Option<String>,
renote_id: &Option<String>,
reply_id: &Option<String>,
renote_id: Option<&String>,
reply_id: Option<&String>,
include_parent: bool,
) -> Result<Vec<String>, DbErr> {
let db = db_conn().await?;
@ -123,8 +123,8 @@ macro_rules! elaborate {
&$note_like.file_ids,
$note_like.text.clone(),
$note_like.cw.clone(),
&$note_like.renote_id,
&$note_like.reply_id,
$note_like.renote_id.as_ref(),
$note_like.reply_id.as_ref(),
$include_parent,
)
};