notedeck

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

commit 0e7d1d9787e3c25166c713f1d1354afbe839e1b3
parent 27a992e00eb799d03f7aea915835f48af15094f1
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  5 Jan 2026 14:44:18 -0800

nip51: add docstring for entry_for_pack

Suggested-by: @coderabbitai
Link: https://github.com/damus-io/notedeck/pull/1200#discussion_r2662987644
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_ui/src/nip51_set.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck_ui/src/nip51_set.rs b/crates/notedeck_ui/src/nip51_set.rs @@ -423,6 +423,8 @@ struct Nip51SetUiState { } impl Nip51SetUiCache { + /// Gets or creates a mutable reference to the UI state for a given pack identifier. If the + /// pack state doesn't exist, it will be initialized with default values. fn entry_for_pack(&mut self, identifier: &str) -> &mut Nip51SetUiState { match self.state.raw_entry_mut().from_key(identifier) { RawEntryMut::Occupied(entry) => entry.into_mut(),