chore (backend-rs): reference Options using as_ref
This commit is contained in:
parent
feee898f05
commit
93fdf11cfa
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue