notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 4f542e318029104c43714565fce5946e846dc9cb
parent 1d9da31d7b0621b96c04d5d09561cc6c0fea7fb4
Author: kernelkind <kernelkind@gmail.com>
Date:   Sun, 23 Nov 2025 09:40:33 -0700

refactor(search): remove unnecessary params

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/search/mod.rs | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/search/mod.rs b/crates/notedeck_columns/src/ui/search/mod.rs @@ -256,12 +256,9 @@ impl<'a, 'd> SearchView<'a, 'd> { let resp = ui.add(recent_profile_item( profile.as_ref(), - &pubkey, - &self.query.string, is_selected, ui.available_width(), self.note_context.img_cache, - self.note_context.accounts, )); if resp.clicked() { @@ -319,7 +316,7 @@ impl<'a, 'd> SearchView<'a, 'd> { self.query.remove_recent_search(i); } } - RecentSearchItem::Profile { pubkey, query } => { + RecentSearchItem::Profile { pubkey, query: _ } => { let profile = self .note_context .ndb @@ -327,12 +324,9 @@ impl<'a, 'd> SearchView<'a, 'd> { .ok(); let resp = ui.add(recent_profile_item( profile.as_ref(), - pubkey, - query, is_selected, ui.available_width(), self.note_context.img_cache, - self.note_context.accounts, )); if resp.clicked() || (is_selected && keyboard_resp.enter_pressed) { @@ -709,12 +703,9 @@ fn search_hashtag( fn recent_profile_item<'a>( profile: Option<&'a ProfileRecord<'_>>, - _pubkey: &'a Pubkey, - _query: &'a str, is_selected: bool, width: f32, cache: &'a mut Images, - _accounts: &'a notedeck::Accounts, ) -> impl egui::Widget + 'a { move |ui: &mut egui::Ui| -> egui::Response { let min_img_size = 48.0;