From 93fdf11cfa2c0a688db7c03286e472f7b9c5c71d Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 15 Jun 2024 06:54:18 +0900 Subject: [PATCH] chore (backend-rs): reference Options using as_ref --- packages/backend-rs/src/misc/note/elaborate.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend-rs/src/misc/note/elaborate.rs b/packages/backend-rs/src/misc/note/elaborate.rs index 878dbb4f83..c117dca7c9 100644 --- a/packages/backend-rs/src/misc/note/elaborate.rs +++ b/packages/backend-rs/src/misc/note/elaborate.rs @@ -18,8 +18,8 @@ pub async fn elaborate_impl( file_ids: &[String], text: Option, cw: Option, - renote_id: &Option, - reply_id: &Option, + renote_id: Option<&String>, + reply_id: Option<&String>, include_parent: bool, ) -> Result, 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, ) };