From 0a08ae92d9b33901b1c7d714d6fcbba748d17155 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Wed, 18 Sep 2024 11:36:07 -0400 Subject: [PATCH] minor cleanup Signed-off-by: kernelkind --- src/ui/note/quote_repost.rs | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/ui/note/quote_repost.rs b/src/ui/note/quote_repost.rs index 1f1ea34..50ac183 100644 --- a/src/ui/note/quote_repost.rs +++ b/src/ui/note/quote_repost.rs @@ -40,20 +40,16 @@ impl<'a> QuoteRepostView<'a> { let id = self.id(); let quoting_note_id = self.quoting_note.id(); - let post_response = { - ui::PostView::new( - self.ndb, - self.draft, - crate::draft::DraftSource::Quote(quoting_note_id), - self.img_cache, - self.note_cache, - self.poster, - ) - .id_source(id) - .ui(self.quoting_note.txn().unwrap(), ui) - }; - - post_response + ui::PostView::new( + self.ndb, + self.draft, + crate::draft::DraftSource::Quote(quoting_note_id), + self.img_cache, + self.note_cache, + self.poster, + ) + .id_source(id) + .ui(self.quoting_note.txn().unwrap(), ui) } pub fn id_source(mut self, id: egui::Id) -> Self {