From 5010d3662dec4fcbf16d84387dead6ce8f752faa Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 24 Jun 2025 13:39:45 -0700 Subject: [PATCH] thread: move comment to the correct place Signed-off-by: William Casarin --- crates/notedeck_columns/src/timeline/kind.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/notedeck_columns/src/timeline/kind.rs b/crates/notedeck_columns/src/timeline/kind.rs index 929b4ff9..adf56399 100644 --- a/crates/notedeck_columns/src/timeline/kind.rs +++ b/crates/notedeck_columns/src/timeline/kind.rs @@ -124,11 +124,6 @@ impl ListKind { } } -/// Thread selection hashing is done in a specific way. For TimelineCache -/// lookups, we want to only let the root_id influence thread selection. -/// This way Thread TimelineKinds always map to the same cached timeline -/// for now (we will likely have to rework this since threads aren't -/// *really* timelines) #[derive(Debug, Clone)] pub struct ThreadSelection { pub root_id: RootNoteIdBuf, @@ -171,6 +166,11 @@ impl ThreadSelection { } } +/// Thread selection hashing is done in a specific way. For TimelineCache +/// lookups, we want to only let the root_id influence thread selection. +/// This way Thread TimelineKinds always map to the same cached timeline +/// for now (we will likely have to rework this since threads aren't +/// *really* timelines) impl Hash for ThreadSelection { fn hash(&self, state: &mut H) { // only hash the root id for thread selection